How to use the @emotion/cache.default function in @emotion/cache

To help you get started, we’ve selected a few @emotion/cache 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('experiment with random', () => {
    let cache = createCache()
    renderToString(
      React.createElement(
        CacheProvider,
        { value: cache },
        React.createElement(ExperimentTriangle, {
          s: 100,
          x: 0,
          y: 0,
          random: Math.random()
        })
      )
    )
  })
  .on('cycle', event => {
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', () => {

@emotion/cache

emotion's cache

MIT
Latest version published 2 days ago

Package Health Score

84 / 100
Full package analysis

Popular @emotion/cache functions

Similar packages