Q. Which method updates the DOM directly?

A
useState()
B
useRef().current
C
useEffect()
D
useContext()
Solution:

useRef().current allows direct DOM manipulation.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!