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-26 18:18:19 +01:00
committed by Dan Abramov
parent 76b916bf32
commit 61dedda93e
+1 -1
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)