Loading problem…
Select the best answer.
setN((x) => x + 1); Promise.resolve().then(() => setN((x) => x + 1));