[Vuejs]-Use components to simplify long HTML, even if components don't repeat and have no props (Vue or any other js library). Yes or No?

0👍

Components are the building blocks of all modern JavaScript frameworks as they provide a better overall architecture for your application in terms of reusability, testability, maintainability and in the end SOLID and KISS principles.

I would recommend splitting your app in smaller and presentational components and use services for business logic. It does not matter if the application is small, by following these principles it will be able to grow with no or less pain. That is the way Angular encourages you to build applications.

As always in this industry, don’t overuse these concepts and apply where appropriate and with common sense 😉

Leave a comment