renderHook

external fun <Result, Props, Container, BaseElement> renderHook(render: (initialProps: Props) -> Result, options: RenderHookOptions<Props, Container, BaseElement>? = definedExternally): RenderHookResult<Result, Props>(source)

Allows you to render a hook within a test React component without having to create that component yourself.