Skip to content

Commit 25d0ba7

Browse files
jacklaurencegaraytimdorr
authored andcommitted
Update hooks.md (remix-run#6977)
1 parent 0fc680e commit 25d0ba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-router/docs/api/hooks.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ This could be really useful e.g. in a situation where you would like to trigger
4545
import React from "react"
4646
import ReactDOM from "react-dom"
4747
import {
48-
BrowserRouter as Router,
4948
Switch,
5049
useLocation
5150
} from "react-router"
51+
import { BrowserRouter as Router } from "react-router-dom"
5252

5353
function usePageViews() {
5454
let location = useLocation()
@@ -80,11 +80,11 @@ ReactDOM.render(
8080
import React from "react"
8181
import ReactDOM from "react-dom"
8282
import {
83-
BrowserRouter as Router,
8483
Switch,
8584
Route,
8685
useParams
8786
} from "react-router"
87+
import { BrowserRouter as Router } from "react-router-dom"
8888

8989
function BlogPost() {
9090
let { slug } = useParams()

0 commit comments

Comments
 (0)