/** * 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 (
{ this.props.error ? this.props.error.message + '\n\n' + this.props.error.stack : 'A critical error occurred.' }