---
title: "Discussion on \"Understanding useRef() in React\" | Hashnode"
description: "Discussion on \"Understanding useRef() in React\". What is useRef()?\nFirst of all, let's compare useRef() with useState(). The main difference between them is, a change in useState() variable will always cause a re-render, whereas, a change in useRef() won't cause the re-render.\nPeople use it for acc..."
url: "https://hashnode.com/posts/understanding-useref-in-react/63c785603fec776b2f72105c"
---

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

Discussion

# [Understanding useRef() in React](https://tushar-rupani.hashnode.dev/understanding-useref-in-react?utm_source=hashnode&utm_medium=feed)

What is useRef()? First of all, let's compare useRef() with useState(). The main difference between them is, a change in useState() variable will always cause a re-render, whereas, a change in useRef() won't cause the re-render. People use it for acc...

Jan 18, 2023 · 3 min read · tushar-rupani.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#30-days-of-code](https://hashnode.com/tag/30-days-of-code)

## Written by

[Tushar Rupani](https://hashnode.com/@tushar2408)

@tushar2408

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

Full Stack Developer!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
