Skip to content

zackyang000/react-linked-state

Repository files navigation

react-linked-state

Deep path two-way binding for React.

NPM Version npm Build Status License

npm install --save react-linked-state

Usage

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')} />;
  }
});

About

Deep path two-way binding for React.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published