3 ms·
I don’t think it’s about “documents” versus “components”. It’s about consistency and maintainability. Keep the local styling for the component local to its pla
by manxman 4y ago
I don’t think it’s about “documents” versus “components”. It’s about consistency and maintainability.
Keep the local styling for the component local to its place in your repository - absolutely. Give it sensible defaults - for sure. But if you’re using it in something complex where the overall design may evolve it’s a maintainability nightmare to hardcode the styling at the component level and/or designing by classname.
I get why initial development is faster BUT… if you want to make a simple style change on a 100 component site - do you really want to be editing a load of components for every change down the line?