(container)
| 29508 | } |
| 29509 | |
| 29510 | function warnIfReactDOMContainerInDEV(container) { |
| 29511 | { |
| 29512 | if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') { |
| 29513 | error('createRoot(): Creating roots directly with document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try using a container element created ' + 'for your app.'); |
| 29514 | } |
| 29515 | |
| 29516 | if (isContainerMarkedAsRoot(container)) { |
| 29517 | if (container._reactRootContainer) { |
| 29518 | error('You are calling ReactDOMClient.createRoot() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.'); |
| 29519 | } else { |
| 29520 | error('You are calling ReactDOMClient.createRoot() on a container that ' + 'has already been passed to createRoot() before. Instead, call ' + 'root.render() on the existing root instead if you want to update it.'); |
| 29521 | } |
| 29522 | } |
| 29523 | } |
| 29524 | } |
| 29525 | |
| 29526 | var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner; |
| 29527 | var topLevelUpdateWarnings; |
no test coverage detected
searching dependent graphs…