Created
December 18, 2016 14:47
-
-
Save Vladmel1234/9c4efe90a388eef2897e800c20d48b9d to your computer and use it in GitHub Desktop.
render react array
This file contains hidden or 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
var forms = []; | |
for (var i = 0; i < json.length; i++) { | |
forms.push(<formjs data={json[i]} submitState={submitState} currentState={currentState} />); | |
} | |
React.renderComponent( | |
<div>{forms}</div>, | |
document.body | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment