Guest User

Untitled

a guest
Jul 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. const animateSwitch = (CustomSwitch, AnimatorComponent) => ({
  2. children,
  3. }) => (
  4. <Route
  5. render={({ location }) => (
  6. <AnimatorComponent uniqKey={location.pathname}>
  7. <CustomSwitch location={location}>{children}</CustomSwitch>
  8. </AnimatorComponent>
  9. )}
  10. />
  11. );
Add Comment
Please, Sign In to add comment