Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.null
使用的是 react16 请问这个warning 应该如何处理谢谢大家
lcoder
#12
二楼正解啊。如果你自己没有在stateless组件内写ref,则应该是antd的问题,你用react16了,antd应该也要升级。你用了Menu组件,可以看看这个。
antd做了fix,更新日志-Antd Design