File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,13 @@ The `renderHook` function accepts the following options as the second parameter:
46
46
47
47
### `initialProps`
48
48
49
- The initial values to pass as `props` to the `callback` function of `renderHook.
49
+ The initial values to pass as `props` to the `callback` function of `renderHook` .
50
50
51
51
### `wrapper`
52
52
53
53
A React component to wrap the test component in when rendering. This is usually used to add context
54
- providers from `React.createContext` for the hook to access with `useContext`.
54
+ providers from `React.createContext` for the hook to access with `useContext`. `initialProps` and
55
+ props subsequently set by `rerender` will be provided to the wrapper.
55
56
56
57
## `renderHook` Result
57
58
You can’t perform that action at this time.
0 commit comments