Skip to content

Commit 5cb931f

Browse files
author
Daniel Leavitt
authored
Tweak CSSTransitionGroup:componentDidMount() (#1)
This is a suggested fix for wikiwi#3. Untested, but trivial.
1 parent 25f8f08 commit 5cb931f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/csstransitiongroup.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export class CSSTransitionGroup extends Component<CSSTransitionGroupProps, {}> {
1919
component: "div",
2020
};
2121
private mounted = false;
22-
public componentDidMount = () => this.mounted = true;
22+
public componentDidMount() {
23+
this.mounted = true;
24+
}
2325

2426
public render() {
2527
const { transitionAppear, children, ...rest } = this.props as any;

0 commit comments

Comments
 (0)