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…
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…
讨论
登录后参与讨论
还没有评论,来说第一句吧。