text: import React from 'react';
  import styles from './styles.css';
  
  export default class ErrorBox extends React.Component {
    componentDidMount() {
      console.error(this.props.error);
    }
  
    render() {
      return <pre className={styles.root}>{`${String(this.props.error)}\n\n${this.props.error.stack}`}</pre>;
    }
  }
  