rofrischmann/fela

View on GitHub
benchmarks/ssr-comparison/src/classes-overload-test/cases/cxs.js

Summary

Maintainability
A
2 hrs
Test Coverage
import cxs from 'cxs'
import { containerStyle, buttonStyles } from '../styles'
import { renderHtml, renderBody } from '../render'

export const cxsCase = caseName => {
  const getButtonClassName = i => cxs(buttonStyles[i])

  const html = renderBody(caseName, cxs(containerStyle), getButtonClassName)

  const { css } = cxs

  cxs.reset()

  return renderHtml(css, html)
}