A

Admin • 833.24K Points
Coach

Q. What is the purpose of `useMemo`?

  • (A) To fetch data
  • (B) To optimize performance by memoizing values
  • (C) To watch props
  • (D) To render UI elements
  • Correct Answer - Option(B)
  • Views: 34
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

`useMemo` prevents unnecessary recalculations of values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.