Skip to content

Commit 471588f

Browse files
committed
Merge pull request #303 from xjamundx/patch-2
Add CommonJS Info to Overview
2 parents d4de20d + ea48abc commit 471588f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/guides/overview.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,15 @@ redirecting transitions, query parameters and more.
371371
[API]:../api/
372372
[path-matching]:./path-matching.md
373373

374+
CommonJS Guide
375+
--------------
376+
377+
In order for the above examples to work in a CommonJS environment you'll need to `require` the following:
378+
379+
```
380+
var Router = require('react-router');
381+
var Route = Router.Route;
382+
var Routes = Router.Routes;
383+
var DefaultRoute = Router.DefaultRoute;
384+
var Link = Router.Link;
385+
```

0 commit comments

Comments
 (0)