Skip to content

Commit 4a14a43

Browse files
committed
Fix table
1 parent e195225 commit 4a14a43

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/api/Location.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ server, the location is the URL path that was used in the request.
99
ReactRouter ships with several locations that make it convenient to
1010
use in many different scenarios. They are listed below.
1111

12-
| `HashLocation` | Stores the current URL in `window.location.hash`. Use this if you need to support browsers that do not support the HTML5 history API |
13-
| `HistoryLocation` | Uses the HTML5 history API to store state in clean URLs |
14-
| `RefreshLocation` | A fallback for having clean URLs in browsers that do not support the HTML5 history API by updating `window.location` whenever the route changes. The router automatically falls back to this when you try to use `HistoryLocation` in old browsers |
15-
| `StaticLocation` | A location for stateless environments (like servers) where the URL is given once |
16-
| `TestLocation` | A location that allows you to easily stub out URL history when writing tests |
12+
Location | Description
13+
------------------- | -----------
14+
`HashLocation` | Stores the current URL in `window.location.hash`. Use this if you need to support browsers that don't support the HTML5 history API
15+
`HistoryLocation` | Uses the HTML5 history API to store state in clean URLs
16+
`RefreshLocation` | A fallback that uses clean URLs in browsers that do not support the HTML5 history API by updating `window.location` whenever the route changes. The router automatically falls back to this when you try to use `HistoryLocation` in old browsers
17+
`StaticLocation` | A location for stateless environments (like servers) where the URL is given once
18+
`TestLocation` | A location that allows you to easily stub out URL history when writing tests
1719

1820
You can also supply the router with your own location implementation. The
1921
following methods must be implemented:

0 commit comments

Comments
 (0)