File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
- # Install
1
+ ## Install
2
2
` meteor add reactrouter:react-router-ssr `
3
3
4
- # Usage
5
- ## ` ReactRouterSSR.Run(routes, [clientOptions], [serverOptions]) `
4
+ ## Usage
5
+ ### ` ReactRouterSSR.Run(routes, [clientOptions], [serverOptions]) `
6
6
The ` routes ` argument takes the routes you want react-router to use (you don't have to call ` React.render() ` yourself)<br />
7
7
Read the [ react-router documentation] ( http://rackt.github.io/react-router/tags/v1.0.0-beta3.html ) for more informations.
8
8
9
- ### clientOptions
10
- The additional arguments you would like to give to the ` <Router />` component on the client. < br />
9
+ #### routes
10
+ Your main ` <Route />` node of your application.
11
11
12
- ### serverOptions
13
- The additional arguments you would like to give to the ` <Router /> ` component on the server. < br />
12
+ #### clientOptions (optional)
13
+ The additional arguments you would like to give to the ` <Router /> ` component on the client.
14
14
15
- # Example
15
+ #### serverOptions (optional)
16
+ The additional arguments you would like to give to the ` <Router /> ` component on the server.
17
+
18
+ ## Example
16
19
``` javascript
17
20
const {Route } = ReactRouter;
18
21
@@ -44,5 +47,5 @@ if (Meteor.isClient) {
44
47
}
45
48
```
46
49
47
- # Warning
50
+ ## Warning
48
51
This is using react-router 1.0 even though it is still in beta. The API is stable and working very well in production.
You can’t perform that action at this time.
0 commit comments