redux-lightweight
This library generates actions creators, action types and reducers for you. It uses class as a syntactic sugar for generating actions and reducers.
Table of Contents
Introduction
Motivation
Redux is great library which solves data management. However it introduces some boilerplate. In order to add one business logic, developer must create 3 different things (action type, action creator, reducer) and they do one thing together. That is why I have decide to create utility that allows declare them in one place. One business logic should be declared in one place.
This library is inspired by redux-actions and mobx
Getting Started
Installation
$ npm install --save redux-lightweight
or
$ yarn add redux-lightweight
Usage
Create class that has state
property as…