()
| 2 | import ReactDOM from 'react-dom'; |
| 3 | |
| 4 | function App() { |
| 5 | const [num, update] = useState(100); |
| 6 | return ( |
| 7 | <ul onClick={() => update(50)}> |
| 8 | {new Array(num).fill(0).map((_, i) => { |
| 9 | return <Child key={i}>{i}</Child>; |
| 10 | })} |
| 11 | </ul> |
| 12 | ); |
| 13 | } |
| 14 | |
| 15 | function Child({ children }) { |
| 16 | const now = performance.now(); |
nothing calls this directly
no test coverage detected