Created
September 20, 2017 09:33
-
-
Save elcodabra/56e186087d055a6971a29b041e16444d to your computer and use it in GitHub Desktop.
Adding a React Component
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 Header from './components/header'; | |
const App = () => { | |
return ( | |
<div className="container"> | |
<div className="starter-template"> | |
<Header /> | |
</div> | |
</div> | |
) | |
} | |
export default App; |
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'; | |
const Header = () => ( | |
<header> | |
<h1>React Example</h1> | |
</header> | |
) | |
export default Header; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment