Sharing Top Content from the Angular-sphere.

Is it ok to use React.js instead of jQuery?

  • Facebook itself tells you how: Integrating with Other Libraries – React

    Now, you don’t need integration with jQuery dependent libraries or functionalities?

  • Cuz jQuery is old hat.
  • But the current world crisis makes us have to integrate with old stuff, just like paying customs from one town to the other in Medieval times.
  • React is better newer generation cuz modular, cuz composable, cuz data trickles down and events trickle up, cuz one way data flow.
  • This is the dialectics of living in this crisis, perhaps in the future, we will work in a unified way without hysterical get it done yesterday cuz profit motives, and work for people’s real needs.

Hi, I am studying web development but I am not a big fan of jQuery. Is it ok to be a professional developer without actually learning & using jQuery?

@devstrong: Is it ok to use React.js instead of jQuery? #AngularJs #reactjs #100daysofcode #AppDev…

This page may be out of date. Save your draft before refreshing this page. Submit any pending changes before refreshing this page.

Hi, I am studying web development but I am not a big fan of jQuery. Is it ok to be a professional developer without actually learning & using jQuery?

While jQuery was an absolute necessity to do web development 5 years ago, nowadays it’s much more rare that professional web developers pull jQuery into modern web applications.

There are two main reasons for this:

Modern web browsers obviate the need for jQuery

10 years ago when I was using jQuery heavily, it was key in my toolkit. Web browsers were incredibly problematic because we had no consistent way of dealing with the DOM. The built-in DOM API was both primitive and differed between browsers.

Today is a different situation. The DOM API is well-documented, powerful, and consistently implemented by major, popular browsers. In fact, the DOM API we have today was heavily inspired by jQuery. You could say that we have the most important subset of jQuery built into modern browsers.

Most browsers in use today have these DOM APIs, and we also have great modern tooling for dealing with older browsers – almost all professional web developers make use some kind of transpilation software like Webpack or Browerify, which polyfills the DOM API for older browsers, allowing us to write software for modern browsers while still have it working in older ones. The polyfill approach is much better than using jQuery because it allows us to eventually throw these polyfills out as users upgrade their browsers.

Modern web stacks abstract DOM manipulation

Back in the day, a HUGE amount of the logic you wrote was touching the DOM. As web devs, we worked very close to it all the time. Nowadays, we’ve learned that it’s of huge benefit to not only separate DOM manipulation from business logic, but also automate it almost completely, which tooling like React that deals with for us.

React and similar tooling doesn’t completely obviate the need for DOM manipulation, but we need to do it very rarely compared to the golden days of jQuery, so we rarely need a specialized DOM manipulation library. In 99.9% of cases, the native DOM API is powerful enough when we need to supplement the automated DOM manipulation of React with some manual DOM fiddling.

Shameless plug: If you like my ramblings about programming on Quora, you might enjoy my YouTube show: funfunfunction

Forget all the losers telling you not to use jQuery. You want to embed a tweet? Or integrate with any fool now using jQuery? You got to use jQuery. How? Facebook itself tells you how: Integrating with Other Libraries – React

Now, you don’t need integration with jQuery dependent libraries or functionalities? Run from it like from the plague. Cuz jQuery is old hat.

But the current world crisis makes us have to integrate with old stuff, just like paying customs from one town to the other in Medieval times.

So: rule of thumb: if you don’t need it, then don’t, cuz it’s non-modular old stuff. React is better newer generation cuz modular, cuz composable, cuz data trickles down and events trickle up, cuz one way data flow.

But if they stick it to you, you better know how to integrate.

So, no simplistic answer.

This is the dialectics of living in this crisis, perhaps in the future, we will work in a unified way without hysterical get it done yesterday cuz profit motives, and work for people’s real needs. Then. No jQuery.

Hey! It’s more than okay to not use jQuery in 2017! Whatsoever! JQuery was developed to address certain issues with browsers which are already addressed nowadays. A lot of jQuery functionality is provided natively by browsers and crossbrowser issues are becoming non-existent. Of all the issues you’ll have in webdev, this is one you shouldn’t worry about. Put it on your to-do list, but don’t stress about it! Good luck with your studies!

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Is it ok to use React.js instead of jQuery?

Comments are closed, but trackbacks and pingbacks are open.