Closed li-jia-nan closed 2 months ago
React.RefAttributes 里面包含了 string 类型,我们不需要 string,所以替换成自定义 RefAttributes
React.RefAttributes
RefAttributes
// TODO: Remove the string ref special case from `PropsWithRef` once we remove LegacyRef type LegacyRef<T> = string | Ref<T>;
The latest updates on your projects. Learn more about Vercel for Git ↗︎
React.RefAttributes
里面包含了 string 类型,我们不需要 string,所以替换成自定义RefAttributes