InterviewSolution
Saved Bookmarks
| 1. |
When Would You Use A Class Component Over A Functional Component? |
|
Answer» If your COMPONENT has state or a LIFECYCLE method(s), use a CLASS component. Otherwise, use a FUNCTIONAL component. If your component has state or a lifecycle method(s), use a Class component. Otherwise, use a Functional component. |
|