Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- render() {
- return (
- <Route
- render={({ location }) => (
- <SlideOut uniqKey={location.pathname}>
- <Switch location={location}>
- <Route path="/a" component={PathA} />
- <Route path="/b" component={PathB} />
- </Switch>
- </SlideOut>
- )}
- />
- );
- }
Add Comment
Please, Sign In to add comment