1
私はすべてのボタンのストアをリストビューをクリックし、それに応じてボタンの状態アイコンを変更する必要があります。 unfollowing_idsは配列です。Reactjs/Flux/altjsストアの変更を聞くスローダウンアプリ
componentWillMount: function() {
FollowingStore.listen(this.onChange);
},
componentWillUnmount: function() {
FollowingStore.unlisten(this.onChange);
},
onChange: function(state) {
this.setState({unfollowing_ids: state.unfollowing_ids});
},
達成する効率的な方法は何ですか。