Answer the question
In order to leave comments, you need to log in
When to use ES6 Class?
Hello.
The question arose, in what cases is the use of ES6 Classes more appropriate?
Let's take 2 cases:
1) A typical website with ajax transitions. Simple widgets: popups, sliders, filters, lightboxes, galleries, search and more. No frameworks or interface design patterns are used.
2) Web application in relatively speaking angular/react/vue/someAnotherHype.js etc. The interface is divided into components.
2.1) PS Is it normal to have components as classes?
I would like to understand the essence of using ES6 classes when creating web sites, because I can not find a place to use classes when creating interfaces, given that most components differ from each other in functionality and have little in common.
I understand that if I don’t see where to use them, then I don’t need it. But I want to learn this so that I can improve my way of thinking when creating websites and web interfaces.
Thank you.
Answer the question
In order to leave comments, you need to log in
Is it normal to have components as classes?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question