Skip to content

Commit 1299f4f

Browse files
committed
Highlight the full act event-dispatch block
1 parent ce4a5c9 commit 1299f4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/content/reference/react

‎src/content/reference/react/act.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Using `act` ensures that all updates have been applied before we make assertions
117117

118118
To test events, wrap the event dispatch inside `act()`:
119119

120-
```js {16,17}
120+
```js {17-19}
121121
import {act} from 'react';
122122
import ReactDOMClient from 'react-dom/client';
123123
import Counter from './Counter';

0 commit comments

Comments
 (0)