mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Updated Router import for example (#9233)
Updated import in order to be a correct working example as in accordance with the docs
This commit is contained in:
committed by
Brandon Dail
parent
f082e35b36
commit
38d8f3ee6b
@@ -111,7 +111,7 @@ If `contextTypes` is not defined, then `context` will be an empty object.
|
||||
Context can also let you build an API where parents and children communicate. For example, one library that works this way is [React Router V4](https://reacttraining.com/react-router):
|
||||
|
||||
```javascript
|
||||
import { Router, Route, Link } from 'react-router-dom';
|
||||
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
|
||||
|
||||
const BasicExample = () => (
|
||||
<Router>
|
||||
|
||||
Reference in New Issue
Block a user