📅  最后修改于: 2022-03-11 15:01:39.729000             🧑  作者: Mango
function TextInputWithFocusButton() {
const inputEl = useRef(null);
const onButtonClick = () => {
// `current` points to the mounted text input element
inputEl.current.focus();
};
return (
<>
>
);
}