in React JS by
Q:

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

1 Answer

0 votes
by

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

Click here to read more about React JS
Click here to read more about Insurance

Related questions

0 votes
asked Mar 30, 2020 in React JS by amita rallin
0 votes
asked Nov 26, 2019 in React JS by AdilsonLima
0 votes
asked Jul 2, 2019 in React JS by Venkatshastri
0 votes
asked Jul 2, 2019 in React JS by Venkatshastri
0 votes
asked May 20, 2020 in React JS by GeorgeBell
...