Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
mchudy committed Sep 15, 2020
1 parent 9ca785c commit b7bebc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ object defining segments. Segments represent single routing paths and are implem
```js
const routes = createRouting({
users: `/users`
users: segment`/users`
} as const);
```
### Segments
### Parameters
You can define route params (i.e. parts of the path that are variable) by interpolating the `arg` function inside a
Expand Down Expand Up @@ -111,6 +109,8 @@ routes.products(
);
```
which will return `/product?details=false&productId=10`.
### Nested routes
Routes can be nested by providing an optional `children` property to segments:
Expand Down

0 comments on commit b7bebc2

Please sign in to comment.