Created
July 31, 2020 10:40
-
-
Save dnshko/9eed3191f1a5ab75e5bcd8a82959c988 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
// JavaScript ES5 function | |
function Greeting(props) { | |
return <h1>{props.greeting}</h1>; | |
} | |
// JavaScript ES6 arrow function | |
const Greeting = (props) => { | |
return <h1>{props.greeting}</h1>; | |
} | |
// JavaScript ES6 arrow function | |
// without body and implicit return | |
const Greeting = (props) => | |
<h1>{props.greeting}</h1>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment