File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ React Router in a Flux App
2
2
==========================
3
3
4
4
``` js
5
- // /////////////////////////////////////////////////////////
6
5
// router.js
7
6
var routes = require (' ./routes' );
8
7
var Router = require (' react-router' );
@@ -14,9 +13,10 @@ var router = Router.create({
14
13
});
15
14
16
15
module .exports = router;
16
+ ```
17
17
18
- // /////////////////////////////////////////////////////////
19
- // SomeActions.js
18
+ ``` js
19
+ // SomeActions.js
20
20
21
21
// and then action creators can require it like other
22
22
// singletons in the app (or if you don't use singletons,
@@ -29,8 +29,9 @@ module.exports = {
29
29
router .transitionTo (' somewhere' );
30
30
}
31
31
};
32
+ ```
32
33
33
- // /////////////////////////////////////////////////////////
34
+ ``` js
34
35
// main.js
35
36
36
37
// finally, run it in your main script
You can’t perform that action at this time.
0 commit comments