摘要: 如果报错没有没有被catch,将会引起整个React组件树的unmounting 解决方法:在生命周期中增加componentDidCatch https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html 阅读全文
posted @ 2018-05-18 15:23 翻页工 阅读(532) 评论(0) 推荐(0) 编辑