You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Next.RC.2版本无法使用函数式组件作为入口 报错Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s%s
#6517
Closed
johnzgit opened this issue
May 29, 2020
· 0 comments
VM109:1 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s%s
Check the render method of `AppWrapper`.
in lib_src_app (created by AppWrapper)
in AppWrapper
问题描述
复现步骤
app.ts中返回一个函数式组件 例如
就可以收到报错
期望行为
报错信息
系统信息
补充信息
The text was updated successfully, but these errors were encountered: