Relying on object property order for a styling API. Good or bad? eg. styles({ backgroundBlue: true, backgroundRed: true, }); In this case the background would be `red` as it appears last. Relying on property order feels gross but can't think of a better API?
-
Show this thread
-
Replying to @sebmck @dan_abramov
might as well go back to regular scss, and learn how to manage it properly / use css-modules / use css-blocks
1 reply 0 retweets 3 likes
Replying to @nullvoxpopuli @dan_abramov
Thanks for your take but it's unrelated to the question I'm asking. There's a lot more rationale that isn't obvious from this tweet.
11:33 AM - 16 Oct 2018
0 replies
0 retweets
9 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 