Skip to content

Commit 1ee9b97

Browse files
committed
update readme
1 parent 93c2d99 commit 1ee9b97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Installation: `npm i @t8/react-router`
1616

1717
## Route matching
1818

19-
Rendering based on the current URL location with `@t8/react-router` is similar to conditional rendering with the ternary operator `matchesRoutePattern ? x : y`, equally applicable to components and prop values and resulting in a single consistent approach for both. This is a contrast to the component-, config-, or file-based route matching which are typically focused on component rendering, while route-based prop values have to be handled differently.
19+
Rendering based on the URL with `@t8/react-router` is similar to conditional rendering with the ternary operator `matchesRoutePattern ? x : y`, equally applicable to components and prop values and resulting in a single consistent approach for both. This is a contrast to the component-, config-, or file-based route matching which are typically focused on component rendering, while route-based prop values have to be handled differently.
2020

2121
```jsx
2222
import {useRoute} from '@t8/react-router';
2323

2424
let App = () => {
25-
let {route, withRoute} = useRoute();
25+
let {withRoute} = useRoute();
2626

2727
// `withRoute(routePattern, x, y)` acts similarly to
2828
// `matchesRoutePattern ? x : y`

0 commit comments

Comments
 (0)