How to use the create-emotion-server.default function in create-emotion-server

To help you get started, we’ve selected a few create-emotion-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emotion-js / emotion / scripts / ssr-benchmarks / bench.js View on Github external
.add('css prop compat with random', () => {
    let cache = createCache()
    createEmotionServer(cache).renderStylesToString(
      renderToString(
        React.createElement(
          CacheProvider,
          { value: cache },
          React.createElement(CssPropTriangle, {
            s: 100,
            x: 0,
            y: 0,
            random: Math.random()
          })
        )
      )
    )
  })
  .add('css func with random', () => {

create-emotion-server

SSR and style extraction tooling for emotion, The Next Generation of CSS-in-JS.

MIT
Latest version published 4 years ago

Package Health Score

78 / 100
Full package analysis

Popular create-emotion-server functions