Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Person extends React.Component {
- static contextType = FamilyName
- render() {
- return <span>My name is {this.props.name} {this.context}</span>
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement