React
React target container is not a DOM element
React could not mount because the element passed to createRoot or legacy render APIs was missing, null, or not a valid DOM element.
React
React could not mount because the element passed to createRoot or legacy render APIs was missing, null, or not a valid DOM element.
Observed message
Target container is not a DOM element.
Why it happens
How to fix it
Official reference
React Docs: Minified React error #299Related errors
Explore more