redux-fx
A library for managing side effects for Redux, inspired by the Elm Architecture.
Install
npm install redux-fx
Usage
... // Decorate createStore with enhanceStoreWithEffects to enable support for effects // NOTE: the enhancer HAS to come last in order for other enhancers to workconst createStoreWithMiddleware = createStore; ... // Create effects of signature (any) => (dispatch, getState) => (any)const incrementWithDelay = ; ... // Return a [state,effect] tuple to create effect descriptors that are fully testable.const reducer = { };
License
MIT © doodledood