Skip to content

Commit 919ccbc

Browse files
committed
Use correct "component" terminology in docs
1 parent 914f16a commit 919ccbc

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

docs/api/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ React Router API
44
- [`Router`](/docs/api/Router.md)
55

66
- Components
7-
- [`DefaultRoute`](/docs/api/elements/DefaultRoute.md)
8-
- [`Link`](/docs/api/elements/Link.md)
9-
- [`NotFoundRoute`](/docs/api/elements/NotFoundRoute.md)
10-
- [`Redirect`](/docs/api/elements/Redirect.md)
11-
- [`Route`](/docs/api/elements/Route.md)
12-
- [`RouteHandler`](/docs/api/elements/RouteHandler.md)
13-
- [`Routes`](/docs/api/elements/Routes.md)
7+
- [`DefaultRoute`](/docs/api/components/DefaultRoute.md)
8+
- [`Link`](/docs/api/components/Link.md)
9+
- [`NotFoundRoute`](/docs/api/components/NotFoundRoute.md)
10+
- [`Redirect`](/docs/api/components/Redirect.md)
11+
- [`Route`](/docs/api/components/Route.md)
12+
- [`RouteHandler`](/docs/api/components/RouteHandler.md)
13+
- [`Routes`](/docs/api/components/Routes.md)
1414

1515
- Mixins
1616
- [`ActiveState`](/docs/api/mixins/ActiveState.md)
@@ -29,5 +29,5 @@ default export are considered public.
2929
```js
3030
var Router = require('react-router');
3131
var Link = Router.Link // yes
32-
var Link = require('react-router/modules/elements/Link') // no
32+
var Link = require('react-router/modules/components/Link') // no
3333
```

docs/api/elements/DefaultRoute.md renamed to docs/api/components/DefaultRoute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ same functionality:
5252
`DefaultRoute` feels more natural, so you can name and transition to the
5353
parent route.
5454

55-
[routeProps]:/docs/api/elements/Route.md#props
55+
[routeProps]:/docs/api/components/Route.md#props
File renamed without changes.

docs/api/elements/NotFoundRoute.md renamed to docs/api/components/NotFoundRoute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ Example
3232
The last `NotFoundRoute` will render inside the `App`, the first will
3333
rendering inside of `Course`.
3434

35-
[routeProps]:/docs/api/elements/Route.md#props
35+
[routeProps]:/docs/api/components/Route.md#props
3636

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/api/misc/transition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ entry in the browser history.
2525

2626
Will pause the transition until the promise resolves.
2727

28-
[transition-hooks]:/docs/api/elements/RouteHandler.md#static-lifecycle-methods
28+
[transition-hooks]:/docs/api/components/RouteHandler.md#static-lifecycle-methods
2929

docs/api/run.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The callback receives two arguments:
4343

4444
#### `Handler`
4545

46-
A react element with the current match all wrapped up inside it, ready
46+
A ReactComponent class with the current match all wrapped up inside it, ready
4747
for you to render.
4848

4949
#### `state`
@@ -131,7 +131,7 @@ something.serve(function (req, res) {
131131
});
132132
```
133133

134-
[1]:./elements/Route.md
134+
[1]:./components/Route.md
135135
[2]:./locations/HashLocation.md
136136
[3]:./classes/Route.md
137137
[4]:https://github.com/rackt/react-router/tree/latest/examples/async-data

0 commit comments

Comments
 (0)