Created
February 7, 2017 19:39
-
-
Save cprass/118044db5d7155533a6992767ff8fb22 to your computer and use it in GitHub Desktop.
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 person = { | |
firstName: 'Douglas', | |
lastName: 'Adams' | |
}; | |
function outputName(user) { | |
return `${user.firstName} ${user.lastName}`; | |
} | |
const App = ( | |
<div className="content"> | |
<h1> | |
Keine Panik, {outputName(person)}! | |
</h1> | |
</div> | |
); | |
ReactDOM.render( | |
element, | |
document.getElementById('root') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment