import { raiseError } from 'analytics' ; import * as React from 'react' ; export class ErrorBoundary extends React . PureComponent { componentDidCatch ( error , errorInfo ) { raiseError ( error , errorInfo ) ; } render ( ) { return this . props . children ; } }