File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Yet another simple React SSR solution inspired by vue-server-render with:
1111
1212## Real World Demo
1313
14- [ react-study ] ( https://github.com/JounQin/react-study )
14+ [ react-hackernews ] ( https://github.com/JounQin/react-hackernews )
1515
1616## Usage
1717
@@ -170,11 +170,11 @@ All you need to do is for hot reload on development:
1701701 . compile server webpack config via node.js API like: ` const const serverCompiler = webpack(serverConfig) `
1711712 . watch serverCompiler and replace server bundle on change
172172
173- Example: https://github.com/JounQin/react-study /blob/master/server/dev.js
173+ Example: https://github.com/JounQin/react-hackernews /blob/master/server/dev.js
174174
175175Your server bundle entry should export a function with a ` userContext ` param which return a promise, and it should resolve a react component instance.
176176
177- Example: https://github.com/JounQin/react-study /blob/master/src/entry-server.js
177+ Example: https://github.com/JounQin/react-hackernews /blob/master/src/entry-server.js
178178
179179When you need to redirect on server or an error occurs, you should reject inside promise so that we can handle it.
180180
Original file line number Diff line number Diff line change 11{
22 "name" : " react-server-renderer" ,
3- "version" : " 0.2.1 " ,
3+ "version" : " 0.2.2 " ,
44 "description" : " simple React SSR solution inspired by vue-server-render" ,
55 "repository" : " git@github.com:JounQin/react-server-renderer.git" ,
66 "main" : " lib/index.js" ,
You can’t perform that action at this time.
0 commit comments