Describe the bug
because the origin code in "renderer.ts" as : ReactDOM.render(element, getWrapper(container))
when my project with a react 18+, it will come with warning info like this uploaded picture.
maybe you can change this with the react 18+ createRoot?
Example to reproduce
No response
How to reproduce
- create a project of react 18+ and use this plugin
- see the info in website terminal
Expected behavior
report no warning info
Dependencies
"dependencies": {
"@ant-design/icons": "^5.3.6",
"@babel/generator": "^7.24.4",
"@babel/parser": "^7.24.4",
"@babel/traverse": "^7.24.1",
"@babel/types": "^7.24.0",
"antd": "^5.16.4",
"elkjs": "^0.8.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.23.0",
"rete": "^2.0.3",
"rete-area-plugin": "^2.0.4",
"rete-auto-arrange-plugin": "^2.0.1",
"rete-connection-plugin": "^2.0.1",
"rete-context-menu-plugin": "^2.0.2",
"rete-engine": "^2.0.1",
"rete-react-plugin": "^2.0.5",
"rete-render-utils": "^2.0.2",
"rete-scopes-plugin": "^2.0.1",
"rete-structures": "^2.0.1",
"styled-components": "^6.1.8"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@types/babel__generator": "^7.6.8",
"@types/babel__traverse": "^7.20.5",
"@types/node": "^20.12.5",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"sass": "^1.75.0",
"typescript": "^5.2.2",
"vite": "^5.2.0",
"vite-plugin-node-polyfills": "^0.21.0",
"web-worker": "^1.3.0"
}
Platform
chrome 124
Relevant log output
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
Code of Conduct