Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

sheets-registry-transformer

1.0.0 • Public • Published

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));

Install

npm i sheets-registry-transformer

DownloadsWeekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

2.12 kB

Total Files

3

Last publish

Collaborators

  • avatar