Skip to content

Commit 0fa79a8

Browse files
committed
Add ReactDOMServer API question
1 parent 649a8fd commit 0fa79a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@
328328
|312| [Describe about data flow in react?](#describe-about-data-flow-in-react)|
329329
|313| [What is react scripts?](#what-is-react-scripts)|
330330
|314| [What are the features of create react app?](#what-are-the-features-of-create-react-app)|
331+
|315| [What is the purpose of renderToNodeStream method?](#what-is-the-purpose-of-rendertonodestream-method)|
331332

332333
## Core React
333334

@@ -5152,3 +5153,6 @@
51525153
5. A build script to bundle JS, CSS, and images for production, with hashes and sourcemaps
51535154
6. An offline-first service worker and a web app manifest, meeting all the Progressive Web App criteria.
51545155
5156+
315. ### What is the purpose of renderToNodeStream method?
5157+
The `ReactDOMServer#renderToNodeStream` method is used to generate HTML on the server and send the markup down on the initial request for faster page loads. It also helps search engines to crawl your pages easily for SEO purposes.
5158+
**Note:** Remember this method is not available in the browser but only server.

0 commit comments

Comments
 (0)