Skip to content

Instantly share code, notes, and snippets.

@jeyraof
Created December 23, 2014 08:50
Show Gist options
  • Save jeyraof/0eaaa73d7750728aae60 to your computer and use it in GitHub Desktop.
Save jeyraof/0eaaa73d7750728aae60 to your computer and use it in GitHub Desktop.
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