- Published on
The main use case for the **_useRef_** hook is to access a DOM child directly.
The main use case for the **_useRef_** hook is to access a DOM child directly.
Building more complex JavaScript applications that run in a user’s browser it’s very essential to be able to store information in the browser that is where we can make use of localStorage