Skip to content

Instantly share code, notes, and snippets.

@cprass
Created February 7, 2017 19:39
Show Gist options
  • Save cprass/118044db5d7155533a6992767ff8fb22 to your computer and use it in GitHub Desktop.
Save cprass/118044db5d7155533a6992767ff8fb22 to your computer and use it in GitHub Desktop.
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