diff --git a/src/index.tsx b/src/index.tsx index 045253c..91d3d72 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -123,12 +123,12 @@ export type AdoptProps = P & { mapProps?: MapProps } -export class Adopt extends React.Component> { +export class Adopt extends React.Component> { private Composed: React.ComponentType constructor(props: any) { super(props) - this.Composed = adopt(props.mapper, this.props.mapProps) + this.Composed = adopt(props.mapper, this.props.mapProps) } public render(): JSX.Element {