Problem Statement
How does the performance of Hooks compare to class components?
Explanation
Hooks are lightweight and reduce boilerplate, but improper use of effects can cause extra renders. With memoization, they perform equally or better.
Practice Sets
This question appears in the following practice sets: