You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/API.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ making it an absolute path.
148
148
If left undefined, the router will try to match the child routes.
149
149
150
150
##### `component`
151
-
A single component to be rendered when the route matches the url. It can
151
+
A single component to be rendered when the route matches the URL. It can
152
152
be rendered by the parent route component with `this.props.children`.
153
153
154
154
```js
@@ -173,7 +173,7 @@ class App extends React.Component {
173
173
174
174
##### `components`
175
175
Routes can define multiple components as an object of `name:component`
176
-
pairs to be rendered when the path matches the url. They can be rendered
176
+
pairs to be rendered when the path matches the URL. They can be rendered
177
177
by the parent route component with `this.props.children[name]`.
178
178
179
179
```js
@@ -349,7 +349,7 @@ Note that the `<Redirect>` can be placed anywhere in the route hierarchy, though
349
349
350
350
## IndexRoute
351
351
Index Routes allow you to provide a default "child" to a parent
352
-
route when visitor is at the url of the parent, they provide convention
352
+
route when visitor is at the URL of the parent, they provide convention
353
353
for `<IndexLink>` to work.
354
354
355
355
Please see the [Index Routes guide](/docs/guides/basics/IndexRoutes.md).
@@ -494,15 +494,15 @@ Transitions to a new URL.
494
494
495
495
###### arguments
496
496
-`state` - the location state.
497
-
-`pathname` - the full url with or without the query.
497
+
-`pathname` - the full URL with or without the query.
498
498
-`query` - an object that will be stringified by the router.
499
499
500
500
##### `replaceState(state, pathname, query)`
501
501
Replaces the current URL with a new one, without affecting the length of the history (like a redirect).
502
502
503
503
###### arguments
504
504
-`state` - the location state.
505
-
-`pathname` - the full url with or without the query.
505
+
-`pathname` - the full URL with or without the query.
506
506
-`query` - an object that will be stringified by the router.
507
507
508
508
##### `go(n)`
@@ -524,7 +524,7 @@ Creates a URL, using the router's config. For example, it will add `#/` in front
524
524
Returns `true` or `false` depending on if the current path is active. Will be true for every route in the route branch matched by the `pathname` (child route is active, therefore parent is too).
525
525
526
526
###### arguments
527
-
-`pathname` - the full url with or without the query.
527
+
-`pathname` - the full URL with or without the query.
528
528
-`query` - an object that will be stringified by the router.
0 commit comments