C
C
colorkid2017-04-27 13:33:45
JavaScript
colorkid, 2017-04-27 13:33:45

vue js. When is componentization appropriate?

Hello. Here I’m slowly mastering VUE JS, before that I didn’t indulge in any reactive / angular. All ok, I made the first slider https://jsfiddle.net/L93mbLyL/, then split it into components https://jsfiddle.net/prL6axfL/7/. And then a question arose.
When is it appropriate to break an application into components? It seems that everyone praises the component approach, but I look at the slider without components https://jsfiddle.net/L93mbLyL/, so it is shorter and more respectable than with components https://jsfiddle.net/prL6axfL/7/. Know there are some criteria, they say if they are satisfied, then they say break it into components, it would be nice to know these criteria. Tell me please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question