---
title: "Discussion on \"useRef Hook\" | Hashnode"
description: "Discussion on \"useRef Hook\". What is Use Ref hook?\nIt is a react hook which persists state between re-renders, similar to useState(), but when we update the useRef variable it doesn't cause re - render, whereas when we set the useState variable it causes re - render.\nLet's under..."
url: "https://hashnode.com/posts/useref-hook/632f2ad03ac18d0d78a023f7"
---

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

Discussion

# [useRef Hook](https://unv.hashnode.dev/useref-hook?utm_source=hashnode&utm_medium=feed)

What is Use Ref hook? It is a react hook which persists state between re-renders, similar to useState(), but when we update the useRef variable it doesn't cause re - render, whereas when we set the useState variable it causes re - render. Let's under...

Sep 24, 2022 · 3 min read · unv.hashnode.dev  
Read the article

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

## Written by

[Uday Narayan Vishwakarma](https://hashnode.com/@Udaynarayan)

@Udaynarayan

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

ReactJs developer

## Responses 2

Markdown supported · ⌘↵ to post

[Divyanshu Tyagi](https://hashnode.com/@stressedtyagi)

[Sep 24, 2022](https://hashnode.com/posts/useref-hook/632f2ad03ac18d0d78a023f7/comment/632f300a3ac18d0d78a024ce)

Well written. Keep it up 👍

[Harsh Rai](https://hashnode.com/@ttharsh)

[Sep 24, 2022](https://hashnode.com/posts/useref-hook/632f2ad03ac18d0d78a023f7/comment/632f2cf73ac18d0d78a02451)

Very nice and concise explanation. Apt example to showcase the use case.
