()
| 1299 | const [reverse, setReverse] = React.useState(false); |
| 1300 | const [items] = React.useState(() => ['a', 'b', 'c']); |
| 1301 | const onClick = () => { |
| 1302 | setReverse(true); |
| 1303 | }; |
| 1304 | |
| 1305 | // shuffle the items so that the react commit needs to restore focus |
| 1306 | // to the correct element after commit |