@spyna/react-store View on GitHub
info This site uses Google Analytics cookiesThis library gives you the ability to manage the state of a React app. It uses a global store, shared with all the bound components of the application.
The store
is created using the function
createStore
. This function is similar to the
redux Provider.
To bind a Component to the store you use the function
withStore
. This function injects in the Component a
prop called store
, whereby you can read,
write, and remove data globally within the application.