Last active
September 15, 2017 04:16
-
-
Save titanium-cranium/9d9f2dbf80c70eb79b4e733d8d74055c to your computer and use it in GitHub Desktop.
Learning React- HelloWorld-props
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
| var Hello = React.createClass({ | |
| render: function(){ | |
| return ( | |
| <div> | |
| <p>Hello {this.props.name}</p> | |
| </div> | |
| ) | |
| } | |
| }); | |
| ReactDOM.render(<Hello name="Brendan" />, document.getElementById('app')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment