Which below hooks in React js allows to directly create a reference to the DOM element ?
(A) useHook
(B) useState
(C) useEffect
(D) useRef
Answer: (A) (D)
Explanation: The useRef in React JS direct creates the reference to the Dom element of the functional component. It contains the property called.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Recommended Articles