Created
January 7, 2021 05:20
-
-
Save robzlabz/b96ba19ccaeca032bd78e66fda66382c 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
class Card extends React.Component { | |
render() { | |
const { name } = this.props; | |
return <h1>Hello, { name }</h1>; | |
} | |
// atau 👇 | |
render() { | |
return <h1>Hello, { this.props.name }</h1>; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment