Technology
Error Handling in React
忽然想起来可以做一个可以动态运行 jsx 代码的网页
react 16 发布了,一会区看看fiber
作用
捕获错误,不影响其它组件的执行
友好错误信息显示
lifecycle
componentDidCatch
参考链接
https://facebook.github.io/react/blog/2017/07/26/error-handling-in-react-16.html
Technology
react 16 发布了,一会区看看fiber
捕获错误,不影响其它组件的执行
友好错误信息显示
componentDidCatch
https://facebook.github.io/react/blog/2017/07/26/error-handling-in-react-16.html