Outdated readme or wrong export?
danielkcz opened this issue · 0 comments
danielkcz commented
Library exports only a production boundary as default
react-error-guard/src/index.js
Line 1 in 5195a31
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