Config Plugin for Fluxible
Your config available from your component, action & store contexts.
Features
- Shares config from server to client (you can use environment variable)
- Works well with browserify / webpack
- Comes with a "do whatever you want" (MIT) license
Install
Add the package to your project :
npm install --save fluxible-plugin-config
Register it to your fluxible instance :
; app;
Component Context
Component static contextTypes = config: ReactPropTypesobject { return <p>foo: thiscontextconfigfoo bar: thiscontextconfigbar</p> ; }
Action Context
{ ;}
Store Context
{ return thisconfigfoo; }