Projects
View on GitHub
anish000kumar/redux-box
About
Modular and easy-to-grasp redux based state management, with least boilerplate
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
Redux Box
A modular, batteries-included container for Redux + Redux-Saga applications.
Less boilerplate. Cleaner reducers. Sagas already wired up.
👉 anish000kumar.github.io/redux-box
Install
npm install redux-box
# or
yarn add redux-box
A taste
// store/counter.js
import { createModule } from 'redux-box';
export default createModule({
state: { count: 0 },
mutations: {
INCREMENT: state => { state.count += 1; },
},
});
// store/index.js
import { createStore } from 'redux-box';
import counter from './counter';
export default createStore({ counter });
That's a complete Redux store. Mutations look mutable but are made immutable under the hood by Immer; sagas, devtools, and middleware are wired up for you.
➡️ Head over to the full documentation for the guide, examples, recipes, and API reference.
License
MIT © Anish Kumar
Explore related projects
Loading…