Two-way binding utility for React (ReactLink without mixins)
npm install react-linkreact-link
==========
An utility for React that provides two-way data binding.
In short, this is bringing functionnality from LinkedStateMixin to ES6 style components.
ReactLink addon, but it only works with old-school component style. This library brings the gap between ReactLink and modern (ES6) components, without monkey patching or other mixin stuff.Note: There are plans to deprecate ReactLink (#2302) so this might be deprecated eventually.
bash
npm install --save react-link
`Usage
`es6
import { Component } from 'react';
import linkedState from 'react-link';export default SignInForm extends Component {
constructor() {
super();
this.state = {
email: '',
password: ''
};
}
render() {
return (
);
}
}
``=================
- Author: Mathieu Darse
- License: MIT