Skip to content

Commit b7dcb32

Browse files
committed
doc: Add missing import
1 parent 8022c83 commit b7dcb32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ npm install --save react-with-params
1313

1414
## Usage
1515
```typescript
16+
import Route from 'react-router/Route'
1617
import {withParams} from 'react-with-params'
1718

1819
const ShowName = withParams('name', {match: '/user/:name'})(({name}) =>
@@ -23,6 +24,7 @@ const ShowName = withParams('name', {match: '/user/:name'})(({name}) =>
2324
```
2425

2526
```typescript
27+
import Route from 'react-router/Route'
2628
import {withParams} from 'react-with-params'
2729

2830
const ShowNameAndId = withParams(['name', 'id'], {match: '/user/:name/:id'})(({name, id}) =>

0 commit comments

Comments
 (0)