Browse Source

Updated Router import for example (#9233)

Updated import in order to be a correct working example as in accordance with the docs
main
Johan Tinglöf 8 years ago
committed by Brandon Dail
parent
commit
afd8649a4e
  1. 2
      docs/context.md

2
docs/context.md

@ -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…
Cancel
Save