---
title: "Discussion on \"useRef hook in React\" | Hashnode"
description: "Discussion on \"useRef hook in React\". 📑 Prerequisites\n\nBasics of react hooks\nBasics of JavaScript\n\n🤔 What is useRef?\nuseRef is the react hook that let you store the reference value which will not change due to component re-render.\nThe syntax of useRef is:\nconst ref = useRef(initialValu..."
url: "https://hashnode.com/posts/useref-hook-in-react/627bffa5e525f1b677137e7b"
---

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

Discussion

# [useRef hook in React](https://sanketdhabarde.hashnode.dev/useref-hook-in-react?utm_source=hashnode&utm_medium=feed)

📑 Prerequisites Basics of react hooks Basics of JavaScript 🤔 What is useRef? useRef is the react hook that let you store the reference value which will not change due to component re-render. The syntax of useRef is: const ref = useRef(initialValu...

May 11, 2022 · 4 min read · sanketdhabarde.hashnode.dev  
Read the article

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

## Written by

[Sanket Dhabarde](https://hashnode.com/@Sank22)

@Sank22 · India

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

web developer

## Responses 1

Markdown supported · ⌘↵ to post

[Peter Machele](https://hashnode.com/@pemachele)

[May 12, 2022](https://hashnode.com/posts/useref-hook-in-react/627bffa5e525f1b677137e7b/comment/627d048f4903bec29b5871f3)

great

[Sanket Dhabarde](https://hashnode.com/@Sank22)

[May 13, 2022](https://hashnode.com/posts/useref-hook-in-react/627bffa5e525f1b677137e7b/comment/627d048f4903bec29b5871f3#reply-627e6ebb01c71be2bfdff63b)

Thank you for reading
