On 0.14-beta1, the following example does not work:
var WithoutMixin = React.createClass({
getInitialState: function() {
return {message: 'Hello!'};
},
handleChange: function(newValue) {
this.setState({message: newValue});
},
render: function() {
var valueLink = {
value: this.state.message,
requestChange: this.handleChange
};
return <input type="text" valueLink={valueLink} />;
}
});
The console shows Uncaught TypeError: Cannot read property 'value' of undefined when typing into the input field
fwiw, event.currentTarget seems to be set correctly.
Is there a workaround or fix for this?
Thanks