PHow about - setCount(prevCount => prevCount + 1)}Comment·Article·Sep 11, 2021·How to get the PREVIOUS state in React?