react-purify
This handy ES7 decorators makes it easy to implement (or migrate gradually) your react-components to a flux-like architecture. Goal of this library is empowering users to purify components quickly without breaking existing architectures.
mixins :
@ // pureRenderMixinComponent //... //if you need more mixins :@ //...
ready to use component-factories
const MyPureComponent = ; const MyImpureComponent = ;
context-helpers
var appState=todo:/*...*/; @ // or @inject({appState:appState}) { return <TodoList /> } @@ // lets only redraw if todos have changed { return <ul>thispropstodo</ul> } //The example above shows how you can gradually move dependencies. Following code is equivallent : @ @ { return <TodoList ...thispropstodo/> } @ { return <ul>thispropstodo</ul> }