/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component, PropTypes } from 'react'; export default class extends Component { static propTypes = { error: PropTypes.instanceOf(Error), }; render() { return (

Error

{
          this.props.error ?
            this.props.error.message + '\n\n' + this.props.error.stack :
            'An critical error occurred.'
        }
); } }