Skip to content

Instantly share code, notes, and snippets.

@danott
Created June 15, 2016 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danott/686fc9a14d06c30cd666c4ed6652e09b to your computer and use it in GitHub Desktop.
Save danott/686fc9a14d06c30cd666c4ed6652e09b to your computer and use it in GitHub Desktop.
I tend to not use getters.
const Name = React.createClass({
render() {
const { first, last } = this.props
const name = `${first} ${last}`
return (
<div>Your full name is {name}</div>
)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment