functions and classes in react 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}
;
}
}