981377660LMT / ts

ts学习
6 stars 1 forks source link

注意函数组件不能直接传 ref #426

Open 981377660LMT opened 7 months ago

981377660LMT commented 7 months ago

Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

981377660LMT commented 7 months ago
image