Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import ReactDOM from 'react-dom';
import React from 'react';
import SimpleComponent from 'components/simple-component';
// Wait until the HTML DOM is full loaded, then render the react component
document.addEventListener('DOMContentLoaded', () => {
ReactDOM.render(<SimpleComponent />, document.querySelector('#app'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment