Skip to content

Commit

Permalink
update the docs for browserrouter in the example of basename. (#7277)
Browse files Browse the repository at this point in the history
  • Loading branch information
smkamranqadri committed Apr 22, 2020
1 parent 26aa871 commit 8439fdd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/react-router-dom/docs/api/BrowserRouter.md
Expand Up @@ -18,8 +18,11 @@ A [`<Router>`](../../../react-router/docs/api/Router.md) that uses the HTML5 his
The base URL for all locations. If your app is served from a sub-directory on your server, you'll want to set this to the sub-directory. A properly formatted basename should have a leading slash, but no trailing slash.

```jsx
<BrowserRouter basename="/calendar" />
<Link to="/today"/> // renders <a href="/calendar/today">
<BrowserRouter basename="/calendar">
<Link to="/today"/> // renders <a href="/calendar/today">
<Link to="/tomorrow"/> // renders <a href="/calendar/tomorrow">
...
</BrowserRouter>
```

## getUserConfirmation: func
Expand Down

0 comments on commit 8439fdd

Please sign in to comment.