Loading problem…
Predict the output.
function App() { const [count, setCount] = React.useState(0) React.useEffect(() => { const id = setInterval(() => { console.log(count) setCount((c) => c + 1) }, 1000) return () => clearInterval(id) }, []) return null }