Develop ReactReact memo TACK2020-11-292020-11-29 ◾️ useRef import React, { useRef } from "react"; function App() { const inputRef = useRef(); return ( <div> <input ref={inputRef} /> <button onClick={() => inputRef.current.focus()} /> </div> ) }