A

Admin • 833.24K Points
Coach

Q. What is the purpose of `shouldComponentUpdate`?

  • (A) To manually control whether the component should re-render
  • (B) To handle unmounting
  • (C) To update state
  • (D) To fetch data
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

`shouldComponentUpdate` is used to improve performance by preventing unnecessary re-renders.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.