Open
Description
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
- Open order edit page.
- See warnings in dev console.
Actual behavior
Warnings thrown:

Expected behavior
No warning regarding ReactDOM.render
.