Skip to content

Commit 1167ba0

Browse files
authored
Added new data api to the docs
1 parent db30691 commit 1167ba0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ The object returned has two properties:
6969

7070
- `markup` - the rendered markup
7171
- `props` - the JSON-serialized props
72+
- `data` - extra data returned by the render server
7273

7374
If the object is coerced to a string, it will emit the value of the `markup` attribute.
7475

@@ -82,6 +83,8 @@ for a simple server that will cover most cases. The key files for the render ser
8283
- [render_server.js](examples/basic_rendering/render_server.js) - the server's source code
8384
- [package.json](examples/basic_rendering/package.json) - the server's dependencies, installable with
8485
[npm](http://npmjs.com)
86+
87+
You can also return extra data from your render server and these data will be stored in `data` attribute of the response object.
8588

8689

8790
Using React on the front-end

0 commit comments

Comments
 (0)