React store built on top of the new context API
store.js
importcreateStorefrom'react-waterfall'constconfig={initialState: {count: 0},actionsCreators: {increment: ({ count })=>({count: count+1}),},}exportconst{ Provider, connect, actions }=createStore(config)App.js
import{connect,Provider,actions}from'./store'letCount=({ count })=>countCount=connect(({ count })=>({ count }))(Count)constApp=()=>(<Provider><Count/><buttononClick={actions.increment}>+</button></Provider>)During development redux-devtools are automatically enabled. Install the extension.
https://github.com/didierfranc/react-waterfall/graphs/contributors