<CSSTransition key={index} timeout={{enter: 500, exit: 300}} classNames="fade"> <Route location={location} key={index} path={route.path} component={route.component} exact={true}/> </CSSTransition> ) } })} </TransitionGroup> )}/> 实际并没有效果,我把react-transition-group切换到v...
参照react-transition-group官网v2的说明和react-routerv4的例子,关键代码如下实际并没有效果,我把react-transition-group切换到v1用CSSTransitionGroup也是没有效果的。 1 回答 慕斯王 TA贡献1864条经验 获得超2个赞 <Route render={({location}) => ( <Route exact path="/" render={() => (<Redirect ...