A

Admin • 833.24K Points
Coach

Q. What is `React.memo` used for?

  • (A) To render a component once only
  • (B) To memoize a component
  • (C) To store previous props
  • (D) To create hooks
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

`React.memo` prevents unnecessary re-renders by memoizing a component's output.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.