Skip to content

Commit 57539cc

Browse files
committed
update quick start
1 parent 29a1a91 commit 57539cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/pages/quick-start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ import React from 'react'
2929
import { render } from 'react-dom'
3030

3131
// 1. import a few components
32-
import { Router, Match, Miss, Link } from 'react-router'
32+
import { BrowserRouter, Match, Miss, Link } from 'react-router'
3333

3434
const App = () => (
3535
// 2. render a `Router`, it will listen to the url changes
3636
// and make the location available to other components
3737
// automatically
38-
<Router>
38+
<BrowserRouter>
3939
<ul>
4040
{/* 3. Link to some paths with `Link` */}
4141
<li><Link to="/">Home</Link></li>
@@ -55,7 +55,7 @@ const App = () => (
5555

5656
{/* If none of those match, then a sibling `Miss` will render. */}
5757
<Miss component={NoMatch}/>
58-
</Router>
58+
</BrowserRouter>
5959
)
6060

6161
const Home = () => (

0 commit comments

Comments
 (0)