A

Admin • 833K Points
Coach

Q. Which of the following hooks is used to persist values across renders without causing re-renders?

  • (A) useState
  • (B) useEffect
  • (C) useMemo
  • (D) useRef
  • Correct Answer - Option(D)
  • Views: 22
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

`useRef` persists values without triggering re-renders.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.