4.0.4 • Published 5 years ago
react-waterfall v4.0.4
react-waterfall
React store built on top of the new context API
Basics
store.js
import createStore from 'react-waterfall'
const config = {
initialState: { count: 0 },
actionsCreators: {
increment: ({ count }) => ({ count: count + 1 }),
},
}
export const { Provider, connect, actions } = createStore(config)
App.js
import { connect, Provider, actions } from './store'
let Count = ({ count }) => count
Count = connect(({ count }) => ({ count }))(Count)
const App = () => (
<Provider>
<Count />
<button onClick={actions.increment}>+</button>
</Provider>
)
Devtools
During development redux-devtools
are automatically enabled. Install the extension.
Contributors
https://github.com/didierfranc/react-waterfall/graphs/contributors
Links
4.0.4
5 years ago
4.0.3
5 years ago
4.0.2
5 years ago
4.0.1
5 years ago
4.0.0
6 years ago
4.0.0-beta.4
6 years ago
4.0.0-beta.3
6 years ago
4.0.0-beta.2
6 years ago
4.0.0-beta.1
6 years ago
4.0.0-beta.0
6 years ago
3.0.7
6 years ago
3.0.6
6 years ago
3.0.5
6 years ago
3.0.4
6 years ago
3.0.3
6 years ago
3.0.2
6 years ago
3.0.1
6 years ago
3.0.0
6 years ago
2.0.0
6 years ago
0.0.1-security
7 years ago
1.5.1
8 years ago
1.5.0
8 years ago
1.4.1
8 years ago
1.4.0
8 years ago
1.3.9
8 years ago
1.3.8
8 years ago
1.3.7
8 years ago
1.3.6
8 years ago
1.3.5
8 years ago
1.3.1
9 years ago
1.3.0
9 years ago
1.2.5
9 years ago
1.2.4
9 years ago
1.2.2
9 years ago
1.2.1
9 years ago
1.2.0
9 years ago
1.1.9
9 years ago
1.1.8
9 years ago
1.1.7
9 years ago
1.1.5
9 years ago
1.1.4
9 years ago
1.1.3
9 years ago
1.1.2
9 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago