mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 12:13:11 +00:00
docs(api-act): api act parts word error (#6939)
This commit is contained in:
@@ -109,7 +109,7 @@ it('can render and update a counter', async () => {
|
||||
});
|
||||
```
|
||||
|
||||
Here, wwe create a container, append it to the document, and render the `Counter` component inside `act()`. This ensures that the component is rendered and its effects are applied before making assertions.
|
||||
Here, we create a container, append it to the document, and render the `Counter` component inside `act()`. This ensures that the component is rendered and its effects are applied before making assertions.
|
||||
|
||||
Using `act` ensures that all updates have been applied before we make assertions.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user