react-fluxury
Bind fluxury stores to React.js.
quick start
npm install --save react-fluxury
connect
Returns a function that generates a React component that runs your render function.
connect(store, transform)(renderFunc)
var CounterStore = ; var CounterView = <div>count</div>
higher-order component
Higher order functions are so cool and are compatible with ES6 classes.
In this case state is passed down as props to the wrapped component.
var Component = Component;var createStore dispatch = ;var connectStore = ; { } { } { return <div> <p>thispropscount</p> <button onClick=thishandleUpClick>+1</button> <button onClick=thishandleDownClick>-1</button> </div> ; } ); EnhancedComponent =