Last active
May 24, 2019 09:15
-
-
Save johnotu/a0cd505432cd4ede3559721791131f41 to your computer and use it in GitHub Desktop.
Initial parent component (before we add child components)
This file contains hidden or 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
'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