Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ericelliott/92ca1a9b4d49d4397d8c to your computer and use it in GitHub Desktop.
Save ericelliott/92ca1a9b4d49d4397d8c to your computer and use it in GitHub Desktop.
Hello, word!
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