Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const animateSwitch = (CustomSwitch, AnimatorComponent) => ({
- children,
- }) => (
- <Route
- render={({ location }) => (
- <AnimatorComponent uniqKey={location.pathname}>
- <CustomSwitch location={location}>{children}</CustomSwitch>
- </AnimatorComponent>
- )}
- />
- );
Add Comment
Please, Sign In to add comment