百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

redux-box

> 前端框架
开源

基于 redux 的模块化且易于理解的状态管理,最少的代码片段

703 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

基于 redux 的模块化且易于理解的状态管理,最少的代码片段

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

bash
npm install redux-box
# or
yarn add redux-box

A taste

javascript
// 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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptreactreduxredux-saga

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架