📜  反应打字稿输入设置焦点动态 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:16.600000             🧑  作者: Mango

代码示例1
// ref for focus dinamically
const search = useRef(null);
...

...
if(search.current?.focus)
    search.current?.focus();