Function: renderHook()
renderHook<
Result
,Props
,Q
,Container
,BaseElement
>(render
,options
?):RenderHookResult
<Result
,Props
>
Allows you to render a hook within a test React component without having to create that component yourself.
Type Parameters
• Result
• Props
• Q extends Queries
= __module
• Container extends Container
| Document
= HTMLElement
• BaseElement extends Container
| Document
= Container
Parameters
• render
• options?: RenderHookOptions
<Props
, Q
, Container
, BaseElement
>
Returns
RenderHookResult
<Result
, Props
>