Search posts, tags, users, and pages
paddingleft
How about - setCount(prevCount => prevCount + 1)}
Karan Hejmadi
Full Stack Developer
You can do that as well. setCount(prevCount => prevCount+1) gets the previous state and adds 1 to it. I think it works better if you have several setState in batches.