Created
July 16, 2018 15:22
-
-
Save stephencookdev/d8c6ce36f043bdc1fa043c4d76c2f1d8 to your computer and use it in GitHub Desktop.
`SwitchWithSlide` example - hoc usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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