Q. How do you prevent a component from re-rendering?
β
Correct Answer: (D)
All of the above
Explanation: All listed techniques help in preventing unnecessary re-renders in various ways.