without the hype
@theharrisjose
whether you want to admit it or not
Everything is global
And there is no way to enforce
local variables
JS has a module systems and package managers
HTML has dependency management via JS
CSS has the cascade - which is never a good thing
sucks
There is no way to get data into and out of CSS
Which means you have to keep stuff updated....manually. This does not scale.
at all
There is basically no equivalent of tree shaking.
The best you can do is render your entire app and then try to figure out what's not used.
in css is a joke
*which also does not work well enough
Flexbox
CSS Grid
Houdini
I don't even know what this is, tbh
^ I totally stole this line from the internet
A 404 page I recently made
Has both global css (a .css file) and locally scoped css (in js).
Scoped by Default
Dependency Management via JS
Share Constants via Props
Dynamic Styles based on conditions
(props and state)
Dead code elimination Built in
Scoped by Default
Dependency Management
Share Constants via Props
Dynamic Styles based on conditions
(props and state)
Dead code elimination
Emotion
Styled Components
CXS
Aphrodite
Thanks, I guess.