Reactjs: Error Boundary not work at expected

前端 未结 0 1350
独厮守ぢ
独厮守ぢ 2020-12-20 07:43

My error Bounary class :

class ErrorBoundary extends Component {
  static propTypes: {
    children: any
  }

  state = {
    error: \'\',
    errorInfo: \'\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题