Skip to content

Commit cbeaf5f

Browse files
committed
explicit source of variables in overview.md
Explicit source of Router, Route, DefaultRoute in overview.md I've only see one person run into this on StackOverflow, but it doesn't hurt to be explicit (we are dealing with react users, right?).
1 parent 5fa86d5 commit cbeaf5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/guides/overview.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ Here's how it works:
144144
active child route.
145145

146146
```js
147+
var Router = require('react-router'); // or var Router = ReactRouter; in browsers
148+
var Route = Router.Route, DefaultRoute = Router.DefaultRoute;
149+
147150
var App = React.createClass({
148151
render: function () {
149152
return (

0 commit comments

Comments
 (0)