Home »
MCQs »
ReactJS MCQs
Which statement is required to define a class component?
37. Which statement is required to define a class component?
- extends React.Components
- imports React.Components
- extends React.Component
- imports React.Component
Answer: C) extends React.Component
Explanation:
In ReactJS, a class component must include the extends React.Component statement.