How to use useRef hooks in react with input box.?
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...
reactonme.hashnode.dev1 min read