|
|
|
|
|
by pier25
2294 days ago
|
|
I love many things about Svelte but after using Vue for a couple of years I wouldn't go back to single file components. The idea of having markup+logic+styles in the same file works for small components but it gets muddy on bigger ones. It can be argued that components should be as small as possible but OTOH having to create a new file for every damn component gets old very quickly. For the past 2-3 years I've been working again with JSX based libraries and being able to create micro components on the same JS file makes a lot more sense. I've also gone back to regular SASS and moved all CSS outside of components (except for dynamic CSS). It works better IMO than single file components. |
|