Skip to content

Commit 5eaac2d

Browse files
committed
Update docs
1 parent 7b75f00 commit 5eaac2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/api-reference.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ The `renderHook` function accepts the following options as the second parameter:
4646

4747
### `initialProps`
4848

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`.
5050

5151
### `wrapper`
5252

5353
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.
5556

5657
## `renderHook` Result
5758

0 commit comments

Comments
 (0)