Neoclassical Programming Multitude
Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

create-emotion-server

10.0.0 • Public • Published

create-emotion-server

Create Server-Side-Rendering APIs for emotion instances

create-emotion-server allows you create various APIs for Server-Side Rendering with instances of emotion. This is only needed if you use a custom instance of emotion from create-emotion and you want to do Server-Side Rendering.

import createEmotionServer from 'create-emotion-server'
 
import { cache } from 'my-emotion-instance'
// or
import createCache from '@emotion/cache'
 
let cache = createCache()
 
export const {
  extractCritical,
  renderStylesToString,
  renderStylesToNodeStream 
= createEmotionServer(cache)

All of emotion's SSR APIs are documented in their own doc.

install

npm i create-emotion-server

Downloadsweekly downloads

25,819

version

10.0.0

license

MIT

homepage

emotion.sh

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability