Skip to main content

Redux-Cool Concepts

Description#

Redux Cool is an awesome tiny package that allows you to easily and intuitively write redux logic.

Installation#

npm install redux-cool

Recipes#

It has only two functions:

import {    reducersCreator,    actionsCreator} from "redux-cool"

Reducer-Tree concept#

It's a javascript object (can have any deep and nested structure) that intuitively and in visible ways, defines action handlers for reducer. See details:

Global and Local Actions concepts#

The actions have Global and Local contexts in Redux Cool. The actions with Global context can be applied to various Reducers. The actions with local contexts can be only be applied to one specific reducer. See details: