react-xcontrol
v0.1.2
Published
Subscribe a react component to a xcontrol controller
Downloads
4
Readme
react-xcontrol
Subscribe a react component to a controlx controller
API
Connect( Component )
Returns axcontrol.Controller
that updates the component whenever the store updates.Computed( Component )( controllers, mapState )
Returns aReact.Component
that renders the wrapped component with the result of mapState on the combined state of the controllers. When any of their stores updates, the component also updates with the new mapped state.