From 62ec41e8757d65448d8450b75fee2a60d453bd50 Mon Sep 17 00:00:00 2001 From: Ozgun Bal Date: Thu, 29 Oct 2020 22:18:44 +0300 Subject: [PATCH] Add missing useLocation import --- docs/example-react-router.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/example-react-router.md b/docs/example-react-router.md index 34af2de05..48a61a594 100644 --- a/docs/example-react-router.md +++ b/docs/example-react-router.md @@ -6,7 +6,7 @@ title: React Router ```jsx // app.js import React from 'react' -import { Link, Route, Switch } from 'react-router-dom' +import { Link, Route, Switch, useLocation } from 'react-router-dom' const About = () =>
You are on the about page
const Home = () =>
You are home