Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function App() {
- return (
- <Router>
- <div>
- <Links />
- <Route exact path="/" render={() => <h1>Home</h1>} />
- <Route path="/(map|explore)/:id" component={MapExploreContainter} />
- <Route path="/map/:id" render={({ match }) => <Map match={match} />} />
- <Route
- path="/explore/:id"
- render={({ match }) => <Explore match={match} />}
- />
- </div>
- </Router>
- );
- }
Add Comment
Please, Sign In to add comment