A

Admin • 828.03K Points
Coach

Q. Which React hook is used to store and persist a reference across renders?

  • (A) useMemo
  • (B) useReducer
  • (C) useRef
  • (D) useContext
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
useRef allows storing values that persist across renders without triggering re-renders.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.