You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FYI after upgrading to React 18 I can see in my browser console:
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
// Beforeimport{render}from'react-dom';constcontainer=document.getElementById('app');render(<Apptab="home"/>,container);// Afterimport{createRoot}from'react-dom/client';constcontainer=document.getElementById('app');constroot=createRoot(container);// createRoot(container!) if you use TypeScriptroot.render(<Apptab="home"/>);
However as of now the only way I'm aware of creating a root is to use reagent.dom/render that uses:
Hello, thanks for this great project.
FYI after upgrading to React 18 I can see in my browser console:
Referring to React doc:
However as of now the only way I'm aware of creating a root is to use reagent.dom/render that uses:
Do you plan to upgrade, would you consider reviewing PR on that?
The text was updated successfully, but these errors were encountered: