# React Adone [](https://www.npmjs.com/package/react-adone) [](https://bundlephobia.com/result?p=react-adone) [](http://albertogasparin.mit-license.org) [](https://circleci.com/gh/albertogasparin/react-adone) [](https://codecov.io/gh/albertogasparin/react-adone) Taking the good parts of Redux and React Context to build a flexible, scalable and easy to use state management solution. ```sh npm i react-adone # or yarn add react-adone ``` ```js import { createStore, createSubscriber } from 'react-adone'; const Store = createStore({ // value of the store on initialisation initialState = { count: 0, }, // actions that trigger store mutation actions: { increment: (by = 1) => ({ setState, getState }) => { // mutate state syncronously setState({ count: getState().count + by, }); }, }, // optional, mostly used for easy debugging name: 'counter', }) const CounterSubscriber = createSubscriber(Store); const App = () => (