So, I'm just asking out of curiosity,
Has anyone found a smart way to handle the binding of two-way data in managed components (input, selection, ...) without having to write all of the following:
getInitialState: function() { return {value: 'Hello!'}; }, handleChange: function(event) { this.setState({value: event.target.value}); }, render: function() { var value = this.state.value; return <input type="text" value={value} onChange={this.handleChange} />; }
plus- source share