(parentComponent, element, containerNode, callback)
| 29695 | return legacyRenderSubtreeIntoContainer(null, element, container, false, callback); |
| 29696 | } |
| 29697 | function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) { |
| 29698 | { |
| 29699 | error('ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported ' + 'in React 18. Consider using a portal instead. Until you switch to ' + "the createRoot API, your app will behave as if it's running React " + '17. Learn more: https://reactjs.org/link/switch-to-createroot'); |
| 29700 | } |
| 29701 | |
| 29702 | if (!isValidContainerLegacy(containerNode)) { |
| 29703 | throw new Error('Target container is not a DOM element.'); |
| 29704 | } |
| 29705 | |
| 29706 | if (parentComponent == null || !has(parentComponent)) { |
| 29707 | throw new Error('parentComponent must be a valid React Component'); |
| 29708 | } |
| 29709 | |
| 29710 | return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback); |
| 29711 | } |
| 29712 | function unmountComponentAtNode(container) { |
| 29713 | if (!isValidContainerLegacy(container)) { |
| 29714 | throw new Error('unmountComponentAtNode(...): Target container is not a DOM element.'); |
no test coverage detected
searching dependent graphs…