create-global-state
v0.0.9
Published
A simple react lib to create a global state that can be shared between components that don't share common parent.
Downloads
37
Readme
Overview
A simple react lib to create a global state that can be shared between components that don't share common parent.
Check the counter example for basic usage, or try it online here. Check the localStorage example for more advanced usage.
Why not use react-use's createGlobalState? Its implementatiom is not type safe and the return value is not intuitive. It's too late to make a PR to change its interface.