Skip to content

Outdated readme or wrong export? #5

@danielkcz

Description

@danielkcz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions