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
But obviously that's not a great solution, especially for what I'm trying to do 😅
The expected behavior
Disable the warning for UMD or give some other way to use createRoot from the UMD.
Use case
I use the UMD as a way to ease people into React without introducing a bunch of tooling up-front. Getting an error in the console is not a great experience.
The text was updated successfully, but these errors were encountered:
React version: v18.0.0
Steps To Reproduce
Run this:
Link to code example: https://jsbin.com/hucetewebu/edit?html,js,console,output
The current behavior
Getting a console error:
However, there's no UMD version of
react-dom/client
so the error is not actionable.I am able to work around this by adding this to the top of the script:
But obviously that's not a great solution, especially for what I'm trying to do 😅
The expected behavior
Disable the warning for UMD or give some other way to use createRoot from the UMD.
Use case
I use the UMD as a way to ease people into React without introducing a bunch of tooling up-front. Getting an error in the console is not a great experience.
The text was updated successfully, but these errors were encountered: