Last active
June 9, 2018 16:50
-
-
Save ole-treichel/20f4493effd380c0d69863f04307b30b to your computer and use it in GitHub Desktop.
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'; | |
class App extends React.Component { | |
render() { | |
return ( | |
<div> | |
<Header/> | |
<Content/> | |
</div> | |
); | |
} | |
} | |
class Header extends React.Component { | |
render() { | |
return ( | |
<div> | |
<h1>Header</h1> | |
</div> | |
); | |
} | |
} | |
class Content extends React.Component { | |
render() { | |
return ( | |
<div> | |
<h2>Content</h2> | |
<p>The content text!!!</p> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment