Open PoliGanina opened 2 years ago
The React Router example is also not functional in React StrictMode. It's advised on other issues to use nodeRef
to avoid findDOMNode
but it doesn't work when you follow the advice at https://reactcommunity.org/react-transition-group/with-react-router.
I think that page really could use an update!
By the way @PoliGanina your link somehow doesn't lead where you'd think - but here's a fixed version: https://codesandbox.io/s/romantic-brook-z5zujp?file=/src/index.js
The given example on page of React Transition Group [https://reactcommunity.org/react-transition-group/with-react-router] is based on previous version of React Router. When I use the code from example, even with Router v.6 updates, there is a bug, the animation of transition doesn't work. It works like a regular router.
the animated transition should appear
CodeSanbox demo https://codesandbox.io/s/romantic-brook-z5zujp?file=/src/index.js