Skip to content

Instantly share code, notes, and snippets.

@ole-treichel
Last active June 9, 2018 16:50
Show Gist options
  • Save ole-treichel/20f4493effd380c0d69863f04307b30b to your computer and use it in GitHub Desktop.
Save ole-treichel/20f4493effd380c0d69863f04307b30b to your computer and use it in GitHub Desktop.
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