Created
December 23, 2014 08:50
-
-
Save jeyraof/0eaaa73d7750728aae60 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
function ReactAppend(a, t) { | |
var reactBoxWrap = t; | |
var reactBox = document.createElement('div'); | |
reactBox.className = 'react-box'; | |
t.appendChild(reactBox); | |
React.render(a, t.lastChild); | |
} | |
ReactAppend(<SettingsBox />, document.getElementById('react-boxes')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment