0.1.3 • Published 8 years ago

react-redux-config v0.1.3

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

react-redux-config

a module to fasten the building of react+readux project

features

a config file to build the react + redux + react-redux project

download

    npm install 'react-redux-config';

demo

check the demo file inexample/index.js

single reducer

    import  _render from 'react-redux-config';
    let configFile={
        react:{
            root:document.getElementById('root'),
            Container:Container
        },
        redux:{
            reducers:reducer,
            actions:{
              action
            }
        }
    };
    _render(configFile)

multiple reducer

    import  _render from 'react-redux-config';
    let configFile={
        react:{
            root:document.getElementById('root'),
            Container:Container
        },
        redux:{
            reducers:{
                reducer1,
                reducer2
            },
            actions:{
              action
            }
        }
    };
    _render(configFile)

multiple reducer with middlewares

    import  _render from 'react-redux-config';
    let configFile={
        react:{
            root:document.getElementById('root'),
            Container:Container
        },
        redux:{
            reducers:{
                reducer1,
                reducer2
            },
            actions:{
              action
            },
            middleware:[logger]
        }
    };
    _render(configFile)
0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago