Skip to content

Commit

Permalink
Merge pull request #56 from reactjs/sync-b12743c3
Browse files Browse the repository at this point in the history
Sync with react.dev @ b12743c
  • Loading branch information
khakimio authored Aug 20, 2024
2 parents af25f0f + 7ebee3e commit e03eb2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react/act.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ it('can render and update a counter', async () => {
});
```

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.
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.

Using `act` ensures that all updates have been applied before we make assertions.

Expand Down

0 comments on commit e03eb2c

Please sign in to comment.