← React Beginner Questions - Set 9 Q84

What is a class component?

React Beginner Questions - Set 9

Example

class Hello extends Component {
  render() { return <h1>Hello {this.props.name}</h1>; }
}

What to notice

← Back to the question list