| Conditions | 2 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import React, { Component } from 'react' |
||
| 17 | |||
| 18 | render() { |
||
| 19 | // eslint-disable-next-line react/destructuring-assignment |
||
| 20 | if (this.state.hasError) { |
||
| 21 | return <h1>Something went wrong.</h1> |
||
| 22 | } |
||
| 23 | |||
| 24 | // eslint-disable-next-line react/destructuring-assignment, react/prop-types |
||
| 25 | return this.props.children |
||
| 26 | } |
||
| 28 |