MCPcopy Index your code
hub / github.com/plotly/dash / unstable_renderSubtreeIntoContainer

Function unstable_renderSubtreeIntoContainer

dash/deps/react-dom@18.2.0.js:29697–29711  ·  view source on GitHub ↗
(parentComponent, element, containerNode, callback)

Source from the content-addressed store, hash-verified

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.');

Callers 1

Calls 4

errorFunction · 0.70
isValidContainerLegacyFunction · 0.70
hasFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…