If I have a react component that had a property set on it\'s state:
onClick() { this.setState({ foo: \'bar\' }); }
Is it possible to re
var Hello = React.createClass({ getInitialState: function () { return { foo: 10, bar: 10 } }, handleClick: function () { let state = {...this.state}; delete state.foo; this.setState(state); }, render: function() { return ( Remove foo Foo { this.state.foo } Bar { this.state.bar } ); }
});