Skip to content

Commit 6c48097

Browse files
committed
fix animation example for 0.13
1 parent 641cd16 commit 6c48097

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/components/RouteHandler.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ class RouteHandler extends React.Component {
4343
}
4444

4545
render() {
46-
return <ContextWrapper>{ this.createChildRouteHandler() }</ContextWrapper>
46+
var handler = this.createChildRouteHandler();
47+
// <script/> for things like <CSSTransitionGroup/> that don't like null
48+
return handler ? <ContextWrapper>{handler}</ContextWrapper> : <script/>;
4749
}
4850

4951
}

0 commit comments

Comments
 (0)