reactant-redux
v0.122.0
Published
A redux lib for Reactant
Downloads
43
Readme
reactant-redux
A redux lib for Reactant
Usage
npm install reactant-redux
# or
yarn add reactant-redux
Example
import { redux } from 'reactant-redux';
const counter = redux({
reducers: {
count: (state = 0, { type, payload }) =>
type === 'increase' ? state + payload : state,
},
actions: {
increase: num => dispatch =>
dispatch({
type: 'increase',
payload: num,
}),
},
});
You can visit reactant.js.org for more documentation.