react-component / util

Common Utils For React Component
util.vercel.app
MIT License
621 stars 177 forks source link

type: replace `React.RefAttributes` => `RefAttributes` #530

Closed li-jia-nan closed 2 months ago

li-jia-nan commented 2 months ago

React.RefAttributes 里面包含了 string 类型,我们不需要 string,所以替换成自定义 RefAttributes

// TODO: Remove the string ref special case from `PropsWithRef` once we remove LegacyRef
type LegacyRef<T> = string | Ref<T>;

image

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
util ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 4, 2024 11:28am