Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/reference/react/act.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ it.only('can render and update a counter', async () => {
document.body.appendChild(container);

await act( async () => {
ReactDOMClient.createRoot(container).render(<Counter />);
ReactDOM.createRoot(container).render(<Counter />);
});

// ✅ Dispatch the event inside act().
Expand Down Expand Up @@ -174,4 +174,4 @@ global.IS_REACT_ACT_ENVIRONMENT=true

In testing frameworks like [React Testing Library](https://testing-library.com/docs/react-testing-library/intro), `IS_REACT_ACT_ENVIRONMENT` is already set for you.

</Note>
</Note>
Loading