Skip to content
Advertisement

Tag: react-transition-group

Animating route transitions with CSSTransitionGroup and React-Router v6

I’m starting to use React-Router v6, and running into issues animating route transitions. Both the react-router docs and the react-transition-group docs specify ways that are not compatible with the new v6 api. The primary reason seems to be the removal of the <Switch> component. In react-router@v5, this worked: …However, in react-router@v6, this does not work: It seems that the main

Advertisement