Guest User

Untitled

a guest
Jul 16th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. render() {
  2. return (
  3. <Route
  4. render={({ location }) => (
  5. <SlideOut uniqKey={location.pathname}>
  6. <Switch location={location}>
  7. <Route path="/a" component={PathA} />
  8. <Route path="/b" component={PathB} />
  9. </Switch>
  10. </SlideOut>
  11. )}
  12. />
  13. );
  14. }
Add Comment
Please, Sign In to add comment