Deep path two-way binding for React.
npm install --save react-linked-state
Use it like official's Two-Way Binding Helpers, the only different is this module support deep path.
var LinkedStateMixin = require('react-linked-state');
var WithLink = React.createClass({
mixins: [LinkedStateMixin],
getInitialState: function() {
return {data: {message: 'Hello!'}};
},
render: function() {
return <input type="text" valueLink={this.linkState('data.message')} />;
}
});