Guest User

Untitled

a guest
Feb 18th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function App() {
  2. return (
  3. <Router>
  4. <div>
  5. <Links />
  6. <Route exact path="/" render={() => <h1>Home</h1>} />
  7. <Route path="/(map|explore)/:id" component={MapExploreContainter} />
  8. <Route path="/map/:id" render={({ match }) => <Map match={match} />} />
  9. <Route
  10. path="/explore/:id"
  11. render={({ match }) => <Explore match={match} />}
  12. />
  13. </div>
  14. </Router>
  15. );
  16. }
Add Comment
Please, Sign In to add comment