Closed
Description
I'm trying to figure out details about createRoot
.
It is the new default function to initialize a react app (v18).
createRoot
functionality
Is this createRoot
the same function as the ones referred to in the docs imported from react-dom/client
? In any case a more prominent export of the function (similar to render
) could be helpful.
createRoot
name conflict issue
And Concurrent.js
might currently be flawed. The names createRoot
and createBlockingRoot
are both defines as constants and then in functions with the same names are created. This will result in a SyntaxError
.
PS: I remember I created another createRoot
related issue somewhere in the past in a different repository. Not sure anymore where 🤔 Sorry for duplication
Metadata
Metadata
Assignees
Labels
No labels