React.createClass({
mixins: [Symbiosis(Store)],
render() {
...
}
});
Is the same as:
React.createClass({
getInitialState() {
return Store.getState();
},
componentWillMount() {
Store.listen(this.onChange);
},
componentWillUnmount() {
Store.unlisten(this.onChange);
},
onChange() {
this.setState(Store.getState());
}
render() {
...
}
});