---
title: "Discussion on \"What is the useRef Hook of React\" | Hashnode"
description: "Discussion on \"What is the useRef Hook of React\". The useRef hook is used to persist values across component re-renders.\nIt is used for DOM manipulation.\nuseRef is the midway between variables and state values.\nUnlike variables, useRef is persistent across re-renders.\nSyntax:-\nconst myRef = useRef(i..."
url: "https://hashnode.com/posts/what-is-the-useref-hook-of-react/68060eb4066bc716681d8b06"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What is the useRef Hook of React](https://learnwithriya.hashnode.dev/what-is-the-useref-hook-of-react?utm_source=hashnode&utm_medium=feed)

The useRef hook is used to persist values across component re-renders. It is used for DOM manipulation. useRef is the midway between variables and state values. Unlike variables, useRef is persistent across re-renders. Syntax:- const myRef = useRef(i...

Apr 21, 2025 · 1 min read · learnwithriya.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#react](https://hashnode.com/tag/react)
-   [#useref](https://hashnode.com/tag/useref)

## Written by

[Riya Agarwal](https://hashnode.com/@RiyaAgarwal)

@RiyaAgarwal · India

  
[View profile](https://hashnode.com/@RiyaAgarwal)

Exploring the world of softwares

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
