A

Admin • 833.24K Points
Coach

Q. Which hook allows you to access the DOM element directly?

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

Explanation by: Admin

useRef provides a way to access and persist a reference to a DOM element.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.