You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice if we could connect actions to stores and stores to components without actually requiring reflux. Currently you need to do this:
varReact=require('react'),Reflux=require('reflux'),MyStore=require('./mystore.js');module.exports=React.createComponent({mixins: [Reflux.connect(MyStore,'myStore')],render: function(){this.state.myStore;// from the connect// ... }});
What I'd like is a possibility for stores to register themselves into a component like this (and similar with actions):
varReact=require('react'),MyStore=require('./mystore.js');module.exports=React.createComponent({mixins: [MyStore.pushState('myStore')],render: function(){this.state.myStore;// from the pushState// ...}});
The text was updated successfully, but these errors were encountered:
It'd be nice if we could connect actions to stores and stores to components without actually requiring reflux. Currently you need to do this:
What I'd like is a possibility for stores to register themselves into a component like this (and similar with actions):
The text was updated successfully, but these errors were encountered: