DEV Community

Discussion on: The state of the state: React state management in 2018

Collapse
 
avkonst profile image
Andrey

useState can be adapted to manage the global state too, even when the global state can be changed by external events, even when components are not mounted. I have replaced Redux and Mobx in all my project by this tiny library github.com/avkonst/react-use-state-x. It made source code a lot simpler and cleaner. The library uses only hooks for global state management and I maintain it.