Make your React ES6 classes LinkState aware with a decorator. Supports nested state keys by specifying the key name with dots.
@NestedValueLink
class MyComponent extends React.Component {
constructor(...args) {
super(...args);
this.state = {
path: { to: { key: "" } }
};
}
render() {
return <input valueLink={this.linkState("path.to.key")} />;
}
}