@spyna/react-store View on GitHub

NPM JavaScript Style Guide CircleCI Bundle Phobia Npm downloads React Version codecov codefactor

This 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.