如果要在函数组件上使用 ref ,可以使用 forwardRef ,或者将该函数组件转换成class 组件。 在hooks 中, useRef 的函数签名是:. useRef<T>(initialValue: T): {current: ...
確定! 回上一頁