From 1f838381bc0aa141d30d5b8a35bac7b3b998621d Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 23 Oct 2023 15:54:45 -0400 Subject: [PATCH] getChildren -> swap order --- packages/integrations/react/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integrations/react/client.js b/packages/integrations/react/client.js index 3d6570d8b35e..73f43aa94563 100644 --- a/packages/integrations/react/client.js +++ b/packages/integrations/react/client.js @@ -29,7 +29,7 @@ function createReactElementFromDOMElement(element) { ); } -function getChildren(experimentalReactChildren, childString) { +function getChildren(childString, experimentalReactChildren) { if(experimentalReactChildren && childString) { let children = []; let template = document.createElement('template'); @@ -59,7 +59,7 @@ export default (element) => const componentEl = createElement( Component, props, - getChildren(element.hasAttribute('data-react-children'), children) + getChildren(children, element.hasAttribute('data-react-children')) ); const rootKey = isAlreadyHydrated(element); // HACK: delete internal react marker for nested components to suppress aggressive warnings