📜  反应 forwardref 打字稿代码示例

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

代码示例1
type MyProps = {
  name: string;
}

const CustomInput = forwardRef(props) => {
  // access your props and ref here
}