Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

sheets-registry-transformer

matthoffner8ISC1.0.0

stream transformer for material ui streaming ssr

material-ui, renderToNodeStream, react, react-dom, ssr

readme

sheets-registry-transformer

Example of using Material UI and React renderToNodeStream for rendering stylesheets on the server.

npm install sheets-registry-transformer

Assuming this is used with Material UI's Stylesheets() to wrap the server rendered component:

const sheetsRegistry = new ServerStyleSheets();
const app = sheetsRegistry.collect(component);
renderToNodeStream(app).pipe(sheetsRegistryTransformer(stylesheet));