DocumentationCommunityGitHubSlackSpectrum

Getting Started

IntroductionInstallCSSStyled ComponentsCompositionObject StylesNested SelectorsMedia QueriesGlobal Styles

Packages

emotionreact-emotionbabel-plugin-emotioneslint-plugin-emotionemotion-serveremotion-themingjest-emotion@emotion/primitivescreate-emotioncreate-emotion-styledcreate-emotion-serverpreact-emotion

create-emotion-server

Edit this page

Create Server-Side-Rendering APIs for emotion instances

create-emotion-styled 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 * as emotion from 'my-emotion-instance'

export const {
  extractCritical,
  renderStylesToString,
  renderStylesToNodeStream
} = createEmotionServer(emotion)

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

Previous Page
create-emotion-styled