inputRef.current.focus();. } return (. <>. <input ref={inputRef} />. <button onClick={handleClick}>. Focus the input. </button>. </>. ); } Show more. Next ...
確定! 回上一頁