---
title: "Discussion on \"How to use useRef hooks in react with input box.?\" | Hashnode"
description: "Discussion on \"How to use useRef hooks in react with input box.?\". import { useRef } from \"react\";\nimport \"./styles.css\";\nexport default function App() { const inputRef = useRef();const handleFunction = () => { inputRef.current.focus() }return ( <div className=\"App\"> <input ref={inputRef} type=\"text\" /> <button onCl..."
url: "https://hashnode.com/posts/how-to-use-useref-hooks-in-react-with-input-box/6558e9a635a2f3133e3649c2"
---

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

Discussion

# [How to use useRef hooks in react with input box.?](https://reactonme.hashnode.dev/how-to-use-useref-hooks-in-react-with-input-box?utm_source=hashnode&utm_medium=feed)

import { useRef } from "react"; import "./styles.css"; export default function App() { const inputRef = useRef();const handleFunction = () => { inputRef.current.focus() }return ( <div className="App"> <input ref={inputRef} type="text" /> <button onCl...

Nov 18, 2023 · 1 min read · reactonme.hashnode.dev  
Read the article

## Written by

[Murali Chowhan](https://hashnode.com/@Chowhan)

@Chowhan · Hyderabad

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

Senior Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
