I am rebuilding my website with React. I faced a problem with react router and react transition group. On react router documentation there is a guide how to create animated transitions. But it's attached to a certain layout:
nav
- link a
- link b
- link c
container
- body a
- body b
- body c
As I understood, the key point there is to wrap all the bodies with TransitionGroup, CSSTransition and Swtich. I've got how it works more or less.
Transition Group keeps previous route body and transition it out.
But as I already stated this solution is attached to this layout.
On my website I have layout like this:
- link a
- body a (slides down on link click)
- link b
- body b (slides down on link click)
- link c
- body c (slides down on link click)
My website reference: https://dmws.me/
Could you please suggest me best practice for this layout?