react-data-store
react-data-store is a state manager for React
installation
npm install --save react-data-store
How it works
It will map your store properties to component
First,Create one of store.js
{ return name:"toy" info: thumb:null { } }
then, bind it to your component.js
@Component { let keyonchange=thispropsstore return <div> <div>key</div> <button onClick=onchange>Click me!</button> </div> }
If with pure function Component
const Main= <div> <div>propskey</div> <button onClick=propsonchange>Click me!</button> </div>