📅  最后修改于: 2022-03-11 15:02:11.840000             🧑  作者: Mango
function TextInputWithFocusButton() {
const inputEl = useRef(null);
const onButtonClick = () => {
// `current` æåå·²æè½½å° DOM ä¸çææ¬è¾å
¥å
ç´
inputEl.current.focus();
};
return (
<>
>
);
}