Server React DOM APIs
The react-dom/server APIs let you server-side render React components to HTML. These APIs are only used on the server at the top level of your app to generate the initial HTML. A framework may call them for you. Most of your components donโt need to import or use them.
Server APIs for Web Streams
๋ค์ ๋ฉ์๋๋ค์ ๋ธ๋ผ์ฐ์ , Deno ๋ฐ ์ผ๋ถ ์ต์ ์ฃ์ง ๋ฐํ์์ ํฌํจํ๋ Web Stream์ด ์๋ ํ๊ฒฝ์์๋ง ์ฌ์ฉํ ์ ์์ต๋๋ค.
renderToReadableStreamrenders a React tree to a Readable Web Stream.resumeresumesprerenderto a Readable Web Stream.
Server APIs for Node.js Streams
These methods are only available in the environments with Node.js Streams:
renderToPipeableStreamrenders a React tree to a pipeable Node.js Stream.resumeToPipeableStreamresumesprerenderToNodeStreamto a pipeable Node.js Stream.
Legacy Server APIs for non-streaming environments
๋ค์ ๋ฉ์๋๋ค์ Stream์ ์ง์ํ์ง ์๋ ํ๊ฒฝ์์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
renderToString์ React ํธ๋ฆฌ๋ฅผ ๋ฌธ์์ด๋ก ๋ ๋๋งํฉ๋๋ค.renderToStaticMarkup์ ์ํธ์์ฉํ์ง ์๋ React ํธ๋ฆฌ๋ฅผ ๋ฌธ์์ด๋ก ๋ ๋๋งํฉ๋๋ค.
์ ๋ฉ์๋๋ค์ ์คํธ๋ฆฌ๋ฐ API์ ๋น๊ตํ์ฌ ๊ธฐ๋ฅ์ด ์ ํ์ ์ ๋๋ค.