The question is simple. Why use JS frameworks when you can write on the same jQuery?

It is closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer to the participants.

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    to even use jQuery to write even fewer bikes - tCode
  • I once was a Dojo fan and the same thought about jQuery ;-)) - Eugene Bartosh
  • Possible duplicate question: What is Backbone? - Duck Learns to Take Cover
  • Thank you all for the answers. But I had to google better. I found an article that answers just my question: weburoki.pro/zachem-nuzhny-js-frejmvorki - Adelina Čšurcan

1 answer 1

It is wrong to say: “write on jQuery ”, because jQuery is a library, not a language. They write in JavaScript and use jQuery .

Nobody forbids the use of pure JavaScript (without additional frameworks and libraries), but then you have to write a lot of code every time and it will take a lot of time.

The main purpose of jQuery - direct work with HTML . But when developing complex applications, this may not be enough, since in addition to working directly with HTML there are many other tasks: saving and displaying data, user interaction, web sockets, etc. To solve these problems and created various frameworks.

For small projects, even jQuery can be too much and write better in pure JavaScript .

Addition :

As pepel_xD correctly noted, jQuery also performs the function of browser unification. That is, you eliminate the need to check in which browser the code works and take into account the features of this browser. jQuery does this for you automatically.

  • 2
    But I would add that JQ is mainly used for cross-browser compatibility, so as not to write a bunch of polyfiles .... But in today's realities, all browsers are equally stable in supporting the standard in the same way. As a result, this library is not needed ... - pepel_xD
  • @pepel_xD agree. I will add to the answer. - Mikhail Vaysman