Last active
July 21, 2016 19:39
-
-
Save ooade/6c20219bc069b637580715aab356570b to your computer and use it in GitHub Desktop.
Higher Order Components
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
<head> | |
<title>My App</title> | |
</head> | |
<body> | |
<div class="app"></div> <!-- We use class here because we're not in the react environment, so don't mix things up --> | |
</body> |
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> | |
); | |
}; | |
ReactDOM.render(<App />, document.querySelector('.app')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment