Skip to content

Instantly share code, notes, and snippets.

@robzlabz
Created January 7, 2021 05:20
Show Gist options
  • Save robzlabz/b96ba19ccaeca032bd78e66fda66382c to your computer and use it in GitHub Desktop.
Save robzlabz/b96ba19ccaeca032bd78e66fda66382c to your computer and use it in GitHub Desktop.
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