Created
May 13, 2017 18:34
-
-
Save rohanBagchi/b6807a23082dca384d680a6db3cadfa4 to your computer and use it in GitHub Desktop.
basic webpack+react entry script
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 React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import Hello from './Hello'; | |
const init = () => { | |
ReactDOM.render( | |
<Hello/>, | |
document.getElementById('app') | |
); | |
}; | |
init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment