What is the difference between a functional component and a class component?
Audio flashcard · 0:13
Nortren·
What is the difference between a functional component and a class component?
0:13
A functional component is a plain JavaScript function that returns JSX and uses hooks for state and side effects. A class component extends React.Component and uses lifecycle methods and this.state. Functional components with hooks are now the standard.