redux-lazy
Generating constants, action types, action creators, reducers and containers for you.
How to install
npm i -S redux-lazy
How to use
; const rl = 'post'; rl; const nameSpace types actions defaultState reducer mapStateToProps mapDispatchToProps Container = rl;
React example
;; const rl = 'post'; rl;rl; const Container reducer = rl; const FormComponent = <form onSubmit=propssubmitAction> <input type="text" value=propstitle onChange=propstitleAction /> </form>; FormComponent; ;
Just add reducer to redux and this example should work.
Articles
React — redux for lazy developers:
React/Redux development on steroids