1.0.2 • Published 6 years ago

redux-ddd v1.0.2

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

redux-ddd

Redux bindings inspired by Domain Driven Design principles.

Along the lines of react-redux, redux-ddd provides Redux bindings for generic domain-specific components.

When dealing with asynchronicity and side-effects, redux-ddd enables an alternative approach to popular libraries such as redux-thunk and redux-saga.

build status npm version npm downloads

Installation

npm install --save redux-ddd

Basic Usage

The redux-ddd library provides a @Connect decorator that extends the semantic of self-defined custom methods onStateUpdate and onAction. The former will be called every time the observed state updates, the latter will be called when an action is dispatched to the store.

The @Connected components are augmented with the Redux store dispatch function, and with the custom mapping of the state they need.

Take a look at the quick-start by example to have an immedate feeling on how the code would look like.

Documentation