Skip to content

Instantly share code, notes, and snippets.

@stephencookdev
Created July 16, 2018 15:22
Show Gist options
  • Save stephencookdev/d8c6ce36f043bdc1fa043c4d76c2f1d8 to your computer and use it in GitHub Desktop.
Save stephencookdev/d8c6ce36f043bdc1fa043c4d76c2f1d8 to your computer and use it in GitHub Desktop.
`SwitchWithSlide` example - hoc usage
const SwitchWithSlide = animateSwitch(Switch, SlideOut);
const App = () => (
<SwitchWithSlide>
<Route path="/a" component={PathA} />
<Route path="/b" component={PathB} />
</SwitchWithSlide>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment