Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
renderChildren() {
const { children, style } = this.props;
// Was: return React.cloneElement( ?> const cloneElement = injectStringRefs(cloneVNode);
return cloneVNode(children,
{ style }
);
}
redirect: matchChild.redirect
};
}
if (matchChild.matched) {
children = matchChild.matched;
const childProps = children.props.params;
for (const key in childProps) {
params[key] = childProps[key];
}
}
} else {
children = null;
}
}
const matched = Inferno.cloneVNode(route, {
children,
params: combineFrom(params, matchBase.params)
});
return {
location,
matched,
redirect
};
}
}
}