Skip to content

Commit 016c735

Browse files
committed
Merge pull request #2315 from edvinerikson/patch-1
Added a UMD example
2 parents c249318 + ae1939a commit 016c735

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@ There's also a UMD build in the `umd` directory:
5959
import ReactRouter from 'react-router/umd/ReactRouter'
6060
```
6161

62-
If you're using globals, you can find the library on `window.ReactRouter`.
62+
If you're using globals, you can find the library on `window.ReactRouter`:
63+
```js
64+
var ReactRouter = window.ReactRouter;
65+
var Router = ReactRouter.Router;
66+
var Link = ReactRouter.Link;
67+
var Route = ReactRouter.Route;
68+
```
6369

6470
#### CDN
6571

0 commit comments

Comments
 (0)