Что такое CSS-in-JS концепции?
- Стили определяются в JavaScript: styled-components, emotion, vanilla-extract
- Runtime (styled-components): генерирует CSS в runtime, overhead
- Zero-runtime (vanilla-extract, Linaria): CSS извлекается в build time
- Плюсы: co-location, dynamic styles, TypeScript types
- Минусы: runtime cost, bundle size, SSR complexity