()
| 27 | } |
| 28 | |
| 29 | function App() { |
| 30 | const [count, setCount] = useState(0); |
| 31 | |
| 32 | const updateCount = () => { |
| 33 | setCount(count + 1); |
| 34 | }; |
| 35 | |
| 36 | useInterval(updateCount, 1000); |
| 37 | |
| 38 | return <div>{count}</div>; |
| 39 | } |
| 40 | |
| 41 | export default App; |
nothing calls this directly
no test coverage detected