A

Admin • 828.03K Points
Coach

Q. What is the use of the useCallback hook?

  • (A) To memoize functions to prevent unnecessary re-creation
  • (B) To store mutable values
  • (C) To fetch data from APIs
  • (D) To manage side effects
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
useCallback returns a memoized callback.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.