pass props
class Welcome extends React.Component {
render() {
return <h1>Hello, {this.props.name}</h1>;
}
}
Are there any code examples left?
New code examples in category Other
class Welcome extends React.Component {
render() {
return <h1>Hello, {this.props.name}</h1>;
}
}