class app extends component syntax code example
Example: class app extends component syntax
class Welcome extends React.Component {
render() {
return Hello, {this.props.name}
;
}
}
class Welcome extends React.Component {
render() {
return Hello, {this.props.name}
;
}
}