Thanks for the speech! Props and style variants can be organized in a map instead of nested ternary operators. And once your designer adds yet another variant it's so easy to update the map. Also, you can provide defaults. I agree with one statement here: small projects can and should use plain CSS. The big ones, however, should give developers some good DX. And for most part, we work on the latter.
Great talk. I'm surprised that there are zero comments here.
Woderful lecture!
I would be very excited if there is one for CSS modules :)
Video starts at 4:14
Thanks for the speech! Props and style variants can be organized in a map instead of nested ternary operators. And once your designer adds yet another variant it's so easy to update the map. Also, you can provide defaults.
I agree with one statement here: small projects can and should use plain CSS. The big ones, however, should give developers some good DX. And for most part, we work on the latter.
Yes, great talk. Very good insights. These are real 'styled-components' issues, but right now all of them is solved with best practices.
Interesting insights. Thank you!