Which choice is a correct refactor of the Greeting class component into a function component?
class Greeting extends React.Component {
render() {
return <h1>Hello {this.props.name}!<h1>;
}
}
Which choice is a correct refactor of the Greeting class component into a function component?
class Greeting extends React.Component {
render() {
return <h1>Hello {this.props.name}!<h1>;
}
}