Hacker News new | ask | show | jobs
by bballer 2726 days ago
> If I change this code, what will happen?

This is why I love single file Vue components[1] with scoped CSS/SASS. The styling for the component in question is right there with the markup and JS, and you know it's not effecting any other HTML with it's declared classes/styling. Breeds a lot of confidence when making changes without having to follow more rigid and fragile paradigms.

Obviously you will still have global styles and themeing but figured this is at least worth a mention.

1 - https://vuejs.org/v2/guide/single-file-components.html