@@ -25,7 +25,7 @@ function renderHook(
25
25
Renders a test component that will call the provided `callback`, including any hooks it calls, every
26
26
time it renders.
27
27
28
- The `renderHook` function accept the following arguments:
28
+ The `renderHook` function accepts the following arguments:
29
29
30
30
### `callback`
31
31
@@ -42,7 +42,7 @@ An options object to modify the execution of the `callback` function. See the
42
42
43
43
## `renderHook` Options
44
44
45
- The `renderHook` function accepts the following options as the second parameter:
45
+ The `renderHook` method accepts the following options as the second parameter:
46
46
47
47
### `initialProps`
48
48
@@ -55,7 +55,7 @@ providers from `React.createContext` for the hook to access with `useContext`.
55
55
56
56
## `renderHook` Result
57
57
58
- The `renderHook` method returns an object that has a following properties:
58
+ The `renderHook` method returns an object that has the following properties:
59
59
60
60
### `result`
61
61
@@ -76,7 +76,7 @@ function waitForNextUpdate(): Promise<void>
76
76
```
77
77
78
78
- `waitForNextUpdate` (`function`) - returns a `Promise` that resolves the next time the hook
79
- renders, commonly when state is updated as the result of a asynchronous action
79
+ renders, commonly when state is updated as the result of an asynchronous action.
80
80
81
81
### `rerender`
82
82
@@ -85,8 +85,7 @@ function rerender(newProps?: any): void
85
85
```
86
86
87
87
A function to rerender the test component, causing any hooks to be recalculated. If `newProps` are
88
- passed, the will replace the `initialProps` passed to the `callback` function for the rerender any
89
- subsequent renders.
88
+ passed, they will replace the `callback` function's `initialProps` for subsequent rerenders.
90
89
91
90
### `unmount`
92
91
0 commit comments