// Use focus() && blur() to add or remove focus. import { useRef } from "react" const inputRef = useRef() // To remove focus: inputRef.current.blur() // To focus: inputRef.current.focus() <input ref='inputRef' {...value} />