Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const type = vNode.type as Function;
const ref = vNode.ref;
const props = vNode.props || EMPTY_OBJ;
let currentNode;
if (isClass) {
const instance = _CI(vNode, type, props, context, isSVG, lifecycle);
const input = instance.$LI;
currentNode = hydrateVNode(input, parentDOM, dom, instance.$CX, isSVG, lifecycle);
_MCCC(ref, instance, lifecycle);
} else {
const input = _HI(renderFunctionalComponent(vNode, context, props));
currentNode = hydrateVNode(input, parentDOM, dom, context, isSVG, lifecycle);
vNode.children = input;
_MFCC(vNode, lifecycle);
}
return currentNode;
}