Created
November 5, 2018 17:21
-
-
Save redgeoff/8b97ded0d402be3efce7d8f70ac63256 to your computer and use it in GitHub Desktop.
Autogenerating Forms - Render
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
ReactDOM.render( | |
<Component | |
definition={definition} | |
onSubmit={({ component }) => { | |
alert(JSON.stringify(component.getValues())); | |
}} | |
/>, | |
document.getElementById("root") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment