As pointed out by @gaearon in code review comment https://github.com/facebook/react/pull/10024#discussion_r123649131 , ReactDOMServer is an object, not a class. (#10027)

This commit is contained in:
Sasha Aickin
2017-06-23 08:07:25 -07:00
committed by Dan Abramov
parent 526056d9bb
commit ee5fefeac4

View File

@@ -10,7 +10,7 @@ If you load React from a `<script>` tag, these top-level APIs are available on t
## Overview
The `ReactDOMServer` class allows you to render your components on the server.
The `ReactDOMServer` object allows you to render your components on the server.
- [`renderToString()`](#rendertostring)
- [`renderToStaticMarkup()`](#rendertostaticmarkup)