4 ms·
Reminds me of styled components. If the goal is generating the selector why not let the body be a string: ```{ Item: "color: red;" }```?
by bryzaguy 5mo ago
Reminds me of styled components. If the goal is generating the selector why not let the body be a string: ```{ Item: "color: red;" }```?
- tenphi 5mo agoBecause usually each style requires its own set of states, and raw strings are hard to type (in Typescript). But there are even more reasons. `styled-components` is just an advanced CSS injector. We used it as an injector in the early version of Tasty.