react使用新版本@17.x 路由懒加载使用 react-loadable 报生命周期警告解决方法(Please update the following components: LoadableComponent)

 

 找到node_modules 里面找到 react-loadable 包

 

 

 

 

 

componentWillMount  修改为  UNSAFE_componentWillMount 即可。
posted @ 2021-10-21 15:36  Action_swt  阅读(1290)  评论(0编辑  收藏  举报