プロジェクト
GitHubで見る
anish000kumar/redux-box
概要
モジュール構成で理解しやすく、ボイラープレートを最小限に抑えたReduxベースの状態管理
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
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
関連プロジェクトを探す
読み込み中…