Function: renderHook()
renderHook<
Result,Props>(render: (initialProps:Props) =>Result,options?:RenderHookOptions<Props>):RenderHookResult<Result,Props>
Allows you to render a hook within a test React component without having to create that component yourself.
Type Parameters
Parameters
Returns
RenderHookResult<Result, Props>