How to add multiple event handlers to same event in React.js
问题 All: I wonder if it is possible that binding multiple event handlers to same event? For example: var LikeToggleButton = React.createClass({ render: function(){ (function toggle(){ this.setState({liked:!like}); }).bind(this); return ( <div onClick={toggle}>TOGGLE LIKE</div> ); } }); Until this point everything seems normal, but I want to add another feature to that button, which is decide by other option: For example, I have another switch component(could be anything like checkbox or radio