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
The word *params* refers to an object of key/value pairs that were parsed out of the original URL's [pathname](#pathname). The values of this object are typically strings, unless there is more than one param with the same name in which case the value is an array.
137
+
130
138
## Path
131
139
132
140
```js
@@ -143,14 +151,6 @@ type Pathname = string;
143
151
144
152
A *pathname* is the portion of a URL that describes a hierarchical path, including the preceding `/`. For example, in `http://example.com/the/path?the=query`, `/the/path` is the pathname. It is synonymous with `window.location.pathname` in web browsers.
145
153
146
-
## QueryString
147
-
148
-
```js
149
-
type QueryString = string;
150
-
```
151
-
152
-
A*query string* is the portion of the URL that follows the [pathname](#pathname), including any preceding `?`. For example, in`http://example.com/the/path?the=query`, `?the=query` is the query string. It is synonymous with`window.location.search`in web browsers.
153
-
154
154
## Query
155
155
156
156
```js
@@ -159,13 +159,13 @@ type Query = Object;
159
159
160
160
A*query* is the parsed version of a [query string](#querystring).
161
161
162
-
## Params
162
+
## QueryString
163
163
164
164
```js
165
-
type Params = Object;
165
+
type QueryString = string;
166
166
```
167
167
168
-
The word *params* refers to an object ofkey/value pairs that were parsed out ofthe original URL's [pathname](#pathname). The values of this object are typically strings, unless there is more than one param with the same name in which case the value is an array.
168
+
A*query string* is the portion ofthe URL that follows the [pathname](#pathname), including any preceding `?`. For example, in`http://example.com/the/path?the=query`, `?the=query`is the query string. It is synonymous with`window.location.search`inweb browsers.
169
169
170
170
## RedirectFunction
171
171
@@ -204,6 +204,8 @@ The term *route component* refers to a [component](#component) that is directly
204
204
- `route` – The [route](#route) that declared this component
205
205
- `routeParams` – A subset of the [params](#params) that were specified in the route's [`path`](#routepattern)
206
206
207
+
Route components should generally be component classes rather than strings. This will avoid potential issues with passing the injected props above to DOM components.
0 commit comments