Skip to content

Support React 18 which uses ReactDOM createRoot instead of render #933

Closed
@chrisbull

Description

@chrisbull

Describe the feature you'd like:

Getting error when using React 18 react@alpha or react@experimental

I'm using React18 to get the new Suspense feature. When doing so, I have to upgrade ReactDOM which now throws an error to use createRoot instead of render

Suggested implementation:

Build in support for both createRoot and render

Describe alternatives you've considered:

In the testing-library@alpha build it to work with react-dom@alpha

Teachability, Documentation, Adoption, Migration Strategy:

See this for documentation: reactwg/react-18#5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions