☆
11
two setState calls, only the second one sticks in React 18
React 18.3. Component has: const [count, setCount] = useState(0) and const inc = () => { setCount(count + 1); setCount(count + 1) }. Clicking once gives me 1, not 2. I th…