Created
May 12, 2016 22:09
-
-
Save danott/3ae21423c435128c09190860c0900375 to your computer and use it in GitHub Desktop.
React + Rails
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
<div id="person_form"></div> | |
<script> | |
ReactDOM.render( | |
React.createElement(PersonForm, <%= @person.to_json.html_safe %>), | |
document.getElementById("person_form") | |
) | |
</script> |
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
ReactDOM.render( | |
React.createElement(PersonForm, <%= @person.to_json.html_safe %>), | |
document.getElementById("person_form") | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment