refactoring

This commit is contained in:
Philipp Kühn
2021-03-16 22:22:13 +01:00
parent a76de1ab6d
commit 49fcf829f3
9 changed files with 91 additions and 55 deletions

View File

@@ -46,7 +46,9 @@ export class ReactRenderer {
const props = this.props
if (isClassComponent(Component)) {
props.ref = (ref: React.Component) => this.ref = ref
props.ref = (ref: React.Component) => {
this.ref = ref
}
}
this.reactElement = <Component {...props } />