Conditionaly render if passed URL matches current location.
It is possible to pass the components to render as children, or via
routeRender
, but it is preferable to use
routeRender
for faster computation.
Props
If the url should match exactly, or allow decendant matching.
When true the regexp won't allow an optional trailing delimiter to match.
The url or urls to match against. You can use express style paths, with the resulting matches being passed to
routeRender
.
RouteRenderProps
Automatically passed to children of Routes and from routeRender
prop.
The router history. (same as router.history
).
The match params of the parent Route's path.
RouterHistory
The previously applied action. ("PUSH", "POP", "REPLACE")
Returns an Integer representing the number of elements in the session history, including the currently loaded page.
The current location.
The window that this history is attached to.
Prompt
LocationSegments
The current hash.
The key of the location.
The path from root.
The contents of the search params.
A tuple of [x, y] scroll position.
The current search string.
Any state that has been attached to the current location.
Listener
MatchResults
If the match was done with exact matching.
The params that were extracted from the url.
The path matcher this was matched against.
The url that was passed to the matcher.