Skip to content

Instantly share code, notes, and snippets.

@johnotu
Last active May 24, 2019 09:15
Show Gist options
  • Save johnotu/a0cd505432cd4ede3559721791131f41 to your computer and use it in GitHub Desktop.
Save johnotu/a0cd505432cd4ede3559721791131f41 to your computer and use it in GitHub Desktop.
Initial parent component (before we add child components)
'use strict';
class BlogApp extends React.Component {
constructor(props) {
super(props);
this.state = {
blogPost: {}
};
}
render() {
return (
<div>Welcome!</div>
)
}
}
ReactDOM.render(<BlogApp />, document.getElementById('react-content'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment