Skip to content

Instantly share code, notes, and snippets.

@ooade
Created July 21, 2016 19:57
Show Gist options
  • Save ooade/d8d90f5d75a95ad40e4e73d38303db7a to your computer and use it in GitHub Desktop.
Save ooade/d8d90f5d75a95ad40e4e73d38303db7a to your computer and use it in GitHub Desktop.
Higher Order Component II
// 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