---
title: "Discussion on \"Taking input in React using useState and useRef Hook.\nWhat's the difference?\" | Hashnode"
description: "Discussion on \"Taking input in React using useState and useRef Hook.\nWhat's the difference?\". Let's first have a look at what exactly useState and useRef hooks in React are and then move to the example of taking input using both the hooks and understand how can we make their proper use according to the need.\nuseState Hook\nuseState returns two..."
url: "https://hashnode.com/posts/taking-input-in-react-using-usestate-and-useref-hook-whats-the-difference/63022b3a428d2725de1a8a95"
---

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

Discussion

# [Taking input in React using useState and useRef Hook. What's the difference?](https://divya-gavandi19.hashnode.dev/taking-input-in-react-using-usestate-and-useref-hook-whats-the-difference?utm_source=hashnode&utm_medium=feed)

Let's first have a look at what exactly useState and useRef hooks in React are and then move to the example of taking input using both the hooks and understand how can we make their proper use according to the need. useState Hook useState returns two...

Aug 21, 2022 · 3 min read · divya-gavandi19.hashnode.dev  
Read the article

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

## Written by

[Divya R. Gavandi](https://hashnode.com/@gavandivya19)

@gavandivya19 · Mumbai

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

SDE

You didn't come this far to only come this far.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
