DEV Community

Discussion on: Basic Hooks: useState

Collapse
ivanjeremic profile image
Ivan Jeremic

If you change based on previous value setState(prevState => prevState + 1)

Collapse
bipinrajbhar profile image
Bipin Rajbhar Author

I save this for the advance react hooks series 😅.