Commit 4a862c0
authored
Update act() usage to be async in examples
The second example uses a synchronous callback to act(), but the docs recommend always using the async version and mention the sync form will be deprecated.
This PR updates the example so the callback is async for consistency with current React recommendations.1 parent b440d66 commit 4a862c0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments