if (!shouldHydrate) { let rootSibling; while ((rootSibling = container.lastChild)) { container.removeChild(rootSibling); } } return createLegacyRoot(container, shouldHydrate ? {hydrate: true} : undefined);}