Reactjs: setState with checkbox: checked or unchecked
问题 I'm currently "testing the waters" with Reactjs. Based on their docs, I have whipped up a small project that I'm stuck with. So far, when the checkbox is checked, the state changes but....not sure how to change a state unchecked: var Foo = React.createClass{( getInitialState: function() { return { location: true, } }, onClick: function() { this.setState({ location: false }); }, render: function() { var inlineStyles = { display: this.state.location ? 'block' : 'none' }; return ( <div> <input