Created
July 21, 2016 19:57
-
-
Save ooade/d8d90f5d75a95ad40e4e73d38303db7a to your computer and use it in GitHub Desktop.
Higher Order Component II
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
// Grab the react and react-dom pkg | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
// Write an App Component | |
const App = () => { | |
return ( | |
<div> Hello World! </div> | |
); | |
}; | |
// Render the App Component to the app class | |
// Use Meteor.startup (Makes sure the Meteor app starts up before you try rendering to the DOM) | |
Meteor.startup(() => { | |
ReactDOM.render(<App />, document.querySelector('.app')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment