WebCloud/react-error-guard

Outdated readme or wrong export?

danielkcz opened this issue · 0 comments

Library exports only a production boundary as default

export {default as ProductionErrorBoundary} from './ProductionErrorBoundary';

But README states that we should do the following to get development version which obviously cannot work.

ErrorBoundaryContainer = require('react-error-guard').DeveloperErrorBoundary;

I had to do ugly variant, but would be nice to correct it :)

const DeveloperErrorBoundary = require('react-error-guard/lib/DeveloperErrorBoundary').default