From 16bb9909315cc5584eed81c1a2a226cfc91470cd Mon Sep 17 00:00:00 2001 From: Boris Serdiuk Date: Sat, 18 Jul 2020 17:05:39 +0200 Subject: [PATCH] Add a recommendation on how to import `act` closes #524 --- docs/react-testing-library/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/react-testing-library/api.md b/docs/react-testing-library/api.md index 7bbb50932..4942c35ef 100644 --- a/docs/react-testing-library/api.md +++ b/docs/react-testing-library/api.md @@ -290,4 +290,4 @@ errors in your tests). This is a light wrapper around the [`react-dom/test-utils` `act` function](https://reactjs.org/docs/test-utils.html#act). All it does is forward all arguments to the act function if your version of -react supports `act`. +react supports `act`. It is recommended to use the import from `@testing-library/react` over `react-dom/test-utils` for consistency reasons.