Import UpdateTask from "./tasks/page/UpdateTask" Import CSSTransition from "react-transition-group/CSSTransition" Import TransitionGroup from "react-transition-group/TransitionGroup" Import LoadingSpinner from "./shared/UIElements/LoadingSpinner" Import MainNavigation from "./Layout/Navigation/MainNavigation" Import TaskFilter from "./tasks/page/TaskFilter" Import TaskMain from "./tasks/page/TaskMain" What is the problem and What is the solution?Īpp.js import from "./store/cart-actions" So the TransitionGroup can sense it and remove the page from the DOM for the right time.īut if I only initialize useLoaction from react-router-dom > const location = useLocation() ![]() Now I try animating between different route with react-transition-group.įor this i need the useLocation that i can pass this result to the CSSTransition. I made an simple taskshceduler with react router 5 and react redux and work fine still.
0 Comments
Leave a Reply. |