We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fc680e commit 25d0ba7Copy full SHA for 25d0ba7
packages/react-router/docs/api/hooks.md
@@ -45,10 +45,10 @@ This could be really useful e.g. in a situation where you would like to trigger
45
import React from "react"
46
import ReactDOM from "react-dom"
47
import {
48
- BrowserRouter as Router,
49
Switch,
50
useLocation
51
} from "react-router"
+import { BrowserRouter as Router } from "react-router-dom"
52
53
function usePageViews() {
54
let location = useLocation()
@@ -80,11 +80,11 @@ ReactDOM.render(
80
81
82
83
84
85
Route,
86
useParams
87
88
89
function BlogPost() {
90
let { slug } = useParams()
0 commit comments