Skip to content

Commit 0857e18

Browse files
Updated docs (#217)
1 parent e4fd984 commit 0857e18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/router/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ Here, we are assuming that your server has returned HTML with a script tag that
9191

9292
## Adding a 404 Route
9393

94-
The router will render nothing if no routes match the current location. This is useful if you want to render a 404 page. To do this, simply add a route with an empty string `""` to your routes array.
94+
The router will render nothing if no routes match the current location. This is useful if you want to render a 404 page. To do this, simply add a route with an empty string `""` to your routes array. You must ensure the 404 route is that last one in your Routes array otherwise incorrect or no routes can render.
9595

96-
**NOTE:** You can not include the path property for the 404 route when using JS. However when using TS you must include the path property and set it to an empty string.
96+
**NOTE:** You can skip the path property for the 404 route when using JS. However when using TS you must include the path property and set it to an empty string.
9797

9898
```js
9999
export const routes = [

0 commit comments

Comments
 (0)