function App() { let [name, setName] = useState('kim'); }
useEffect(() => { if (count != 0 && count < 3) { setAge(age+1)} }, [count]); return ... <button onClick={() => { setCount(count+1); }>+</button>
count != 0
There was an error while loading. Please reload this page.