Last active
August 29, 2015 14:21
-
-
Save ericelliott/92ca1a9b4d49d4397d8c to your computer and use it in GitHub Desktop.
Hello, word!
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
const Hello = function (props) { | |
return { | |
props, // set props | |
render () { | |
// get `word` from props obj with | |
// es6 destructuring: | |
const { word } = this.props; | |
return ( | |
// Fill in the { blanks } | |
<p>Hello, { word }!</p> | |
); | |
} | |
}; | |
}; | |
export default Hello; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment