diff --git a/src/csstransitiongroup.tsx b/src/csstransitiongroup.tsx index c04a122..0b638c5 100644 --- a/src/csstransitiongroup.tsx +++ b/src/csstransitiongroup.tsx @@ -19,7 +19,9 @@ export class CSSTransitionGroup extends Component { component: "div", }; private mounted = false; - public componentDidMount = () => this.mounted = true; + public componentDidMount() { + this.mounted = true; + } public render() { const { transitionAppear, children, ...rest } = this.props as any;