We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6214576 commit 74461f1Copy full SHA for 74461f1
src/content/reference/react/act.md
@@ -15,7 +15,7 @@ await act(async actFn)
15
要将组件准备好进行断言,请将渲染代码和执行更新的操作包裹在 `await act()` 中。这能让你的测试更接近 React 在浏览器中的实际工作方式。
16
17
<Note>
18
-你可能会发现直接使用 `act()` 略显繁琐。为了减少样板代码,可以使用像 [React Testing Library](https://testing-library.com/docs/react-testing-library/intro)这样的库,其辅助方法已经内置了 `act()` 封装。
+你可能会发现直接使用 `act()` 略显繁琐。为了减少样板代码,可以使用像 [React Testing Library](https://testing-library.com/docs/react-testing-library/intro)这样的库,其辅助方法已经内置了对 `act()` 的封装。
19
</Note>
20
21
0 commit comments