Last active
February 5, 2018 16:20
-
-
Save charlesfreeborn/4766516a4c4487fe1f1251b43b65e58c 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'; | |
import ReactDOM from 'react-dom'; | |
class SampleComponent extends React.Component{ | |
render(){ | |
return ( | |
<div> | |
<h1>Hello, {this.props.name}</h1> | |
</div> | |
); | |
} | |
} | |
ReactDOM.render(<SampleComponent name = "Charles" />, | |
document.getElementById('app')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment