Answer the question
In order to leave comments, you need to log in
DOM or framework?
Hello!
I wanted to ask people experienced in js.
Interested in questions: Do you often have to use DOM in the frontend or is this not a relevant thing now, but are frameworks used to replace it? What is the approximate percentage of DOM usage in JS frontend in your projects?
Thanks
Answer the question
In order to leave comments, you need to log in
They are not a replacement, but a help. At what there are different approaches - there are wrappers that simplify interaction but slow down work (jQuery), there is another approach when a virtual DOM is used and modifications to the real DOM are minimized (ReactJS, Polymer 0.8+).
I often use jQuery, but since it doesn’t work perfectly with shadow trees even with patches, I have to manually climb the DOM. But you need to understand how it works in any case, what with frameworks / libraries, what without.
Do you mean "should I use the DOM"?
All client-side JavaScript is focused on DOM operations, otherwise what's the point?
How often do you have to use DOM in frontend
Working directly with the DOM makes sense either if you are doing something very small and at once, or if you are trying to squeeze out every crumb of speed that is possible.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question