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:
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>
|
||||
|
|
Loading…
Reference in New Issue