---
title: "Discussion on \"Prevent re-renders with useRef\" | Hashnode"
description: "Discussion on \"Prevent re-renders with useRef\". There may be times when you don't want to trigger renders when capturing data from the user. useState, by now, is a well known and handy hook since it was implemented in React 16.8. When setting our state variable with useState, it causes a render of..."
url: "https://hashnode.com/posts/prevent-re-renders-with-useref/628e9e0d19bda58ac7fb1ba9"
---

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

Discussion

# [Prevent re-renders with useRef](https://brettthurston.com/prevent-re-renders-with-useref?utm_source=hashnode&utm_medium=feed)

There may be times when you don't want to trigger renders when capturing data from the user. useState, by now, is a well known and handy hook since it was implemented in React 16.8. When setting our state variable with useState, it causes a render of...

May 25, 2022 · 5 min read · brettthurston.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Brett Thurston](https://hashnode.com/@BrettThurston)

@BrettThurston · South Alabama

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

Software developer, front end

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
