React and Jquery?

Is Jquery needed if you know React? if not why is it still a part of the fCC curriculum?

It’s a different library with a different purpose. FCC covers a series of different libraries, not just React.

1 Like

To answer your question. React can do what jquery does by doing it better. If jquery has tools/methods react does not have, 100% there is a library you can import to do the task you need (or write your own functionality, vanilla javascript on the browser in amazing)

React uses fiber or virtual dom (depending on the version ) which is way more performant than jquery’s way of direct dom manipulation.

I will add some links for you to check out in order to make sense of what I said above.

The DOM: mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction

Virtual dom: https://reactjs.org/docs/faq-internals.html

React fiber: https://indepth.dev/posts/1008/inside-fiber-in-depth-overview-of-the-new-reconciliation-algorithm-in-react

In my professional life, I have removed/refactored jquery code out of React from 4-5 years old apps.

Hope this helps.

1 Like