|
6 | 6 | - [`<IndexLink>`](#indexlink)
|
7 | 7 | - [`<RouterContext>`](#routercontext)
|
8 | 8 | - [`context.router`](#contextrouter)
|
9 |
| - - `<RoutingContext>` (deprecated, use `<RouterContext>`) |
10 | 9 |
|
11 | 10 | - [Configuration Components](#configuration-components)
|
12 | 11 | - [`<Route>`](#route)
|
|
29 | 28 | - [`match()`](#match-routes-location-history-options--cb)
|
30 | 29 | - [`createRoutes()`](#createroutesroutes)
|
31 | 30 | - [`PropTypes`](#proptypes)
|
32 |
| - - [`useRoutes()`](#useroutescreatehistory-deprecated) (deprecated) |
33 |
| - |
34 |
| -- [Mixins](#mixins-deprecated) (deprecated) |
35 |
| - - `Lifecycle` (deprecated) |
36 |
| - - `History` (deprecated) |
37 |
| - - `RouteContext` (deprecated) |
38 | 31 |
|
39 | 32 |
|
40 | 33 | ## Components
|
@@ -116,16 +109,7 @@ A [location descriptor](https://github.com/mjackson/history/blob/master/docs/Glo
|
116 | 109 | * `hash`: A hash to put in the URL, e.g. `#a-hash`.
|
117 | 110 | * `state`: State to persist to the `location`.
|
118 | 111 |
|
119 |
| -##### `query` **([Deprecated](https://github.com/reactjs/react-router/blob/master/upgrade-guides/v2.0.0.md#link-to-onenter-and-isactive-use-location-descriptors) see `to`)** |
120 |
| -An object of key:value pairs to be stringified. |
121 |
| - |
122 |
| -##### `hash` **([Deprecated](https://github.com/reactjs/react-router/blob/master/upgrade-guides/v2.0.0.md#link-to-onenter-and-isactive-use-location-descriptors) see `to`)** |
123 |
| -A hash to put in the URL, e.g. `#a-hash`. |
124 |
| - |
125 |
| -_Note: React Router currently does not manage scroll position, and will not scroll to the element corresponding to the hash. Scroll position management utilities are available in the [scroll-behavior](https://github.com/taion/scroll-behavior) library._ |
126 |
| - |
127 |
| -##### `state` **([Deprecated](https://github.com/reactjs/react-router/blob/master/upgrade-guides/v2.0.0.md#link-to-onenter-and-isactive-use-location-descriptors) see `to`)** |
128 |
| -State to persist to the `location`. |
| 112 | +_Note: React Router currently does not manage scroll position, and will not scroll to the element corresponding to the hash. |
129 | 113 |
|
130 | 114 | ##### `activeClassName`
|
131 | 115 | The className a `<Link>` receives when its route is active. No active class by default.
|
@@ -581,8 +565,6 @@ class App extends React.Component {
|
581 | 565 | }
|
582 | 566 | ```
|
583 | 567 |
|
584 |
| -#### `history` (deprecated) |
585 |
| - |
586 | 568 | ### Named Components
|
587 | 569 | When a route has one or more named components, the child elements are available by name on `this.props`. In this case `this.props.children` will be undefined. All route components can participate in the nesting.
|
588 | 570 |
|
@@ -697,13 +679,3 @@ One or many [`<Route>`](#route)s or [`PlainRoute`](#plainroute)s.
|
697 | 679 | The following prop types are exported at top level and from `react-router/lib/PropTypes`:
|
698 | 680 | - `routerShape`: Shape for the `router` object on context
|
699 | 681 | - `locationShape`: Shape for the `location` object on route component props
|
700 |
| - |
701 |
| -Previously, a number of prop types intended for internal use were also exported under `PropTypes`. These are deprecated and should not be used. |
702 |
| - |
703 |
| - |
704 |
| -### `useRoutes(createHistory)` (deprecated) |
705 |
| - |
706 |
| - |
707 |
| -## Mixins (deprecated) |
708 |
| - |
709 |
| -Deprecated, please see the [upgrade guide](/upgrade-guides/v2.0.0.md#mixins-are-deprecated). |
0 commit comments