Skip to content

Commit

Permalink
getChildren -> swap order
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Oct 23, 2023
1 parent 65cd3ca commit 1f83838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/integrations/react/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1f83838

Please sign in to comment.