Skip to content

Warning should appear when versions of react and react-dom do not match #14443

@mjhoffm2

Description

@mjhoffm2

Do you want to request a feature or report a bug?

Request a feature

What is the current behavior?

If the version of react and react-dom do not match, some features fail silently. See this issue for example: reduxjs/react-redux#1125

In this issue, the new Context API wasn't working as intended, but no errors or warnings were visible. Components simply did not update. It turns out that this issue was because I updated react to version 16.6.3, but still had react-dom at version 16.5.

What is the expected behavior?

I would like to see some sort of warning message in the console in development mode when the versions of react and react-dom do not match.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions