-
-
Save jonathanmeaney/a88d696129edde38d6538f28720f07e1 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
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