3 ms·
This is why I personally like the Vue/React way of scoped CSS -- it promotes loading a simple baseline CSS (like Skeleton) for the full page and specializing in
by moosingin3space 9y ago
This is why I personally like the Vue/React way of scoped CSS -- it promotes loading a simple baseline CSS (like Skeleton) for the full page and specializing in the individual component layer. It's easy to refactor in the case of changing requirements (if the same across components, move style into global CSS, if not, move into component).
- jorblumesea 9y agoShout to React's Styled Components: https://github.com/styled-components/styled-components https://github.com/styled-components/styled-components Very nice to work with.