reactlynx-testing-library / RenderHookResult
Interface: RenderHookResult<Result, Props>
The result of renderHook
Type Parameters
Properties
rerender()
Triggers a re-render. The props will be passed to your renderHook callback.
Parameters
Returns
void
Defined in
index.d.ts:1327
result
This is a stable reference to the latest value returned by your renderHook callback
current
The value returned by your renderHook callback
Defined in
index.d.ts:1332
unmount()
Unmounts the test component. This is useful for when you need to test any cleanup your useEffects have.
Returns
void
Defined in
index.d.ts:1342