CanopyTax / kremling

Embarrassingly simple css for React
https://kremling.js.org
Apache License 2.0
36 stars 4 forks source link

Make Scoped component 'css' prop handle kremling-loader (postcss) object #35

Closed geoctrl closed 4 years ago

geoctrl commented 5 years ago

Currently, the useCss hook handles both strings (regular css) and objects (kremling-loader css).

I'm thinking it would be great to move in that direction for the <Scoped> css prop as well, and eventually deprecate the postcss prop.

Deprecating the postcss prop would be a breaking change, but it would be pretty easy to fix in any-sized project:

find/replace: postcss= => css=

joeldenning commented 5 years ago

👍 i like it