import React, { Component } from 'react' import { StyleSheet, css } from 'next/css' export default class CrazyCSS extends Component { spans () { const out = [] for (let i = 0; i < 1000; i++) { out.push(This is ${i}) } return out } render () { return
{this.spans()}
} } const spanStyles = {} for (let i = 0; i < 1000; i++) { spanStyles[`padding-${i}`] = { padding: i } } const styles = StyleSheet.create(spanStyles)