fix(wrapReactType): try another method

This commit is contained in:
AAGaming
2022-08-12 21:35:25 -04:00
parent a1fdae9cd2
commit b7dc1d6275

View File

@@ -83,8 +83,7 @@ export function unpatch(obj: any, name: any): void {
}
export function wrapReactType(node: any) {
const oldComponent = node.type;
return node.type = (...args: any[]) => React.createElement(oldComponent, ...args)
return node.type = {...node.type}
}
export function getReactInstance(o: HTMLElement | Element | Node) {