Nov 26, 2019 in React JS
Q:

When would you use a Class Component over a Functional Component?

1 Answer

0 votes
Nov 26, 2019

If your component has state or a lifecycle method(s), use a Class component. or else, use a Functional component

Related questions

0 votes
Jun 19, 2020 in React JS
0 votes
Jun 19, 2020 in React JS
...