Skip to content

Add fail-fast mode to React #1753

Closed
Closed
@slorber

Description

@slorber

When using components with missing/invalid prop, then a warning is logged.
Same when a child key was not provided.

I would like an error to be thrown instead.

This has already been discussed on some issues like: #1587

By the way, I totally support this related issue, to ensure proper Proptype documentation of all components, but would require an error instead of a warning :)

The more we fail in dev, the better. It would be nice to be able to use React in a very strict way, by using some configuration attribute or something...

One other thing I would probably add is to enforce all components have a name.
See #1751

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions