Skip to content

Warning to use createRoot instead ReactDOM.render #7074

Open
@shendy-a8c

Description

@shendy-a8c

Describe the bug

When working on #7043, I saw this warning:

ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot

We do have ReactDOM.render() calls in the code.
Even though we specify React 17 as dependency, it might be a good idea to switch to createRoot().

To Reproduce

  1. Open order edit page.
  2. See warnings in dev console.

Actual behavior

Warnings thrown:

Screenshot 2023-08-28 at 01 00 26

Expected behavior

No warning regarding ReactDOM.render.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Task (new)good first issueThe issue is a good candidate for the first community contribution/for a newcomer to the team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions