()
| 12 | } |
| 13 | |
| 14 | render() { |
| 15 | if (this.state.hasError) { |
| 16 | return <div>Something went wrong: {this.state.error?.message}</div>; |
| 17 | } |
| 18 | return this.props.children; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | export default ErrorBoundary; |
no outgoing calls
no test coverage detected