Created
June 15, 2016 18:49
-
-
Save danott/686fc9a14d06c30cd666c4ed6652e09b to your computer and use it in GitHub Desktop.
I tend to not use getters.
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
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