Skip to content

Commit da8ef8b

Browse files
koba04eps1lon
andauthored
Explain where act comes from (#3237)
Co-authored-by: Sebastian Silbermann <[email protected]>
1 parent d493015 commit da8ef8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/testing-recipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ You may use a different pattern, but keep in mind that we want to execute the cl
5757

5858
### `act()` {#act}
5959

60-
When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface. React provides a helper called `act()` that makes sure all updates related to these "units" have been processed and applied to the DOM before you make any assertions:
60+
When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface. `react-dom/test-utils` provides a helper called [`act()`](/docs/test-utils.html#act) that makes sure all updates related to these "units" have been processed and applied to the DOM before you make any assertions:
6161

6262
```js
6363
act(() => {

0 commit comments

Comments
 (0)