Skip to content

Commit b438fab

Browse files
committed
use react-hackernews as example
1 parent b468355 commit b438fab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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:
170170
1. compile server webpack config via node.js API like: `const const serverCompiler = webpack(serverConfig)`
171171
2. 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

175175
Your 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

179179
When you need to redirect on server or an error occurs, you should reject inside promise so that we can handle it.
180180

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)