We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a9c2d commit 5e45d6aCopy full SHA for 5e45d6a
docs/example-react-router.md
@@ -6,7 +6,7 @@ title: React Router
6
```jsx
7
// app.js
8
import React from 'react'
9
-import { Link, Route, Switch } from 'react-router-dom'
+import { Link, Route, Switch, useLocation } from 'react-router-dom'
10
11
const About = () => <div>You are on the about page</div>
12
const Home = () => <div>You are home</div>
0 commit comments