Function components
Answers
Answered by
0
The most obvious one difference is the syntax. A functional component is just a plain JavaScript function which accepts props as an argument and returns a React element. A class component requires you to extend from React. Component and create a render function which returns a React element.
Similar questions
Biology,
3 months ago
Geography,
3 months ago
Social Sciences,
3 months ago
Hindi,
7 months ago
Computer Science,
7 months ago
Math,
10 months ago
Physics,
10 months ago
English,
10 months ago