DEV Community

loading...

Discussion on: Introducing Object Hooks: Mutable State for React 🤯

shiftyp profile image
Ryan Lynch (he/him) Author

The extra bit that bridges the diff between resettable state, and mutable state: is taking the setState function and calling it whenever properties on the object change. If that's not a feature you want though, then resettable state is a good solution!