Skip to content

Commit b216188

Browse files
authored
Add a recommendation on how to import act (#526)
closes #524
1 parent f8ad6c3 commit b216188

File tree

1 file changed

+1
-1
lines changed
  • docs/react-testing-library

1 file changed

+1
-1
lines changed

docs/react-testing-library/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,4 @@ errors in your tests).
290290
This is a light wrapper around the
291291
[`react-dom/test-utils` `act` function](https://reactjs.org/docs/test-utils.html#act).
292292
All it does is forward all arguments to the act function if your version of
293-
react supports `act`.
293+
react supports `act`. It is recommended to use the import from `@testing-library/react` over `react-dom/test-utils` for consistency reasons.

0 commit comments

Comments
 (0)