Last active
March 28, 2017 20:56
-
-
Save viniciusdacal/b9109e1096fee4b50b806f701ec38fff to your computer and use it in GitHub Desktop.
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
| import React from 'react'; | |
| import ReactDom from 'react-dom'; | |
| function Welcome({ name }) { | |
| return ( | |
| <h1>Hello, {name}</h1> | |
| ); | |
| } | |
| const strangerName = 'Stranger'; | |
| ReactDOM.render( | |
| <Welcome name={strangerName} />, | |
| document.getElementById('root') | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment