css in js的问题太多了,简直无法直视,现阶段,要么使用 zero-runtime的这种,编译时就生成css的方案,要不就是直接类似 tailwindcss这种 原子类,其他的方案完全没有空间。 而且对于ssr和ssg来说,简直就是灾难。。 ### ref * https://daily.dev/blog/why-i-moved-from-styled-components-to-tailwind-css-and-whats-the-future-of-css-in-js * https://medium.com/airbnb-engineering/airbnbs-trip-to-linaria-dc169230bd12
css in js的问题太多了,简直无法直视,现阶段,要么使用 zero-runtime的这种,编译时就生成css的方案,要不就是直接类似 tailwindcss这种 原子类,其他的方案完全没有空间。
而且对于ssr和ssg来说,简直就是灾难。。
ref