Skip to content
المشاريع

حول

إدارة حالة باستخدام Redux، قائمة على وحدات وسهلة الفهم، مع أقل قدر من الشيفرة الإضافية

تطوير الويب والتطبيقات

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Redux Box

Redux Box

A modular, batteries-included container for Redux + Redux-Saga applications.
Less boilerplate. Cleaner reducers. Sagas already wired up.

npm version license last commit

Read the Docs

👉 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

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…