new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

React · API reference · all subjects

react dom - server rendering

8 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

renderToPipeableStream in React DOM Server

renderToPipeableStream is a new method exported from react-dom/server for streaming in Node environments. It has full support for streaming Suspense on the server and is recommended over the existing renderToString method.

renderToReadableStream in React DOM Server

renderToReadableStream is a new method exported from react-dom/server for modern edge runtime environments, such as Deno and Cloudflare workers. It has full support for streaming Suspense on the server and is recommended over the existing renderToString method.

renderToPipeableStream for Node streaming

In React 18, renderToPipeableStream is the new recommended API for streaming SSR in Node environments, replacing the deprecated renderToNodeStream. It supports incremental Suspense streaming on the server.

renderToReadableStream for edge runtime environments

React 18 introduces renderToReadableStream as a new API to support streaming SSR with Suspense for modern edge runtime environments such as Deno and Cloudflare workers.

Deprecated server rendering APIs in React 18

renderToNodeStream is deprecated in React 18. renderToString and renderToStaticMarkup have limited Suspense support. renderToStaticNodeStream continues to work for rendering emails.

Stricter hydration errors in React 18

React 18 treats hydration mismatches due to missing or extra text content as errors instead of warnings. React will no longer attempt to patch up individual nodes and will instead revert to client rendering up to the closest Suspense boundary. This ensures the hydrated tree is consistent and avoids potential privacy and security holes.

renderToString behavior with Suspense in React 18

In React 18, renderToString no longer errors when suspending on the server. Instead, it emits the fallback HTML for the closest Suspense boundary and then retries rendering on the client. For better support, switch to streaming APIs like renderToPipeableStream or renderToReadableStream.

renderToStaticMarkup behavior with Suspense in React 18

In React 18, renderToStaticMarkup no longer errors when suspending on the server. Instead, it emits the fallback HTML for the closest Suspense boundary.

Give your agent this brain