Indi
时间的朋友 blog.storycn.cn

not assignable to type LegacyRef<xxxxx> 🔗useRef定义一个ref时,报不能推断类型 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import React, { useRef, RefObject } from 'react'; function Test() { const node = useRef<HTMLElement>(n…

讨论

还没有评论,来说第一句吧。

时间的朋友 的其他文章