Skip to content

Commit 9deba3a

Browse files
Merge pull request #1 from carmichaelalonso/patch-1
Tweak CSSTransitionGroup:componentDidMount()
2 parents 25f8f08 + 38a690f commit 9deba3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/csstransitiongroup.tsx

Lines changed: 3 additions & 1 deletion
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)