Open hamlim opened 2 months ago
import React from 'react'; import { renderToPipeableStream } from 'react-dom/server';
const App = () => (
);
const stream = renderToPipeableStream(
// Handle the stream as needed
@TUNISIA-user - yea thats the API, however I haven't found it documented anywhere
+
Summary
importMap
option is not documented on either page forrenderToPipeableStream
norrenderToReadableStream
Page
https://react.dev/reference/react-dom/server/renderToReadableStream
Details
After spending a decent amount of time trying to figure out how to inject an
importMap
when server rendering within React, I finally stumbled across the fixtures which showcase using theimportMap
option. I have found no reference to this option on the current docs.