Redux-Cool Concepts
#
DescriptionRedux Cool is an awesome tiny package that allows you to easily and intuitively write redux logic.
#
Installationnpm install redux-cool
#
RecipesIt has only two functions:
import { reducersCreator, actionsCreator} from "redux-cool"
- reducersCreator : For creating reducer functions.
- actionsCreator : For creating action objects.
#
Reducer-Tree conceptIt'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 conceptsThe 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: