switched errorReporter over to a react component