Skip to content

Commit 5e45d6a

Browse files
authoredOct 29, 2020
Add missing useLocation import (#660)
1 parent 10a9c2d commit 5e45d6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/example-react-router.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: React Router
66
```jsx
77
// app.js
88
import React from 'react'
9-
import { Link, Route, Switch } from 'react-router-dom'
9+
import { Link, Route, Switch, useLocation } from 'react-router-dom'
1010

1111
const About = () => <div>You are on the about page</div>
1212
const Home = () => <div>You are home</div>

0 commit comments

Comments
 (0)
Please sign in to comment.