Created
September 9, 2018 19:12
-
-
Save AndrewRayCode/c7313e3f9ad3fac9d382e9868b538b2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class MyUserForm extends Component { | |
constructor() { | |
this.state = { myFormData: {} }; | |
} | |
render() { | |
const { myFormData } = this.state; | |
return ( | |
<MagicForm onChange={data => this.setState({ myFormData: data })}> | |
<Input type="text" name="fieldName" value={myFormData.fieldName} /> | |
</MagicForm> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment