貪心機器學習高級魔鬼訓練營第6期
if (!shouldHydrate) {
? ?let rootSibling;
? ?while ((rootSibling = container.lastChild)) {
? ? ?container.removeChild(rootSibling);
? ?}
?}
?return createLegacyRoot(container, shouldHydrate ? {hydrate: true} : undefined);}
標簽: