Why shouldn’t I use Jquery with React?

Asked

Viewed 2,112 times

1

What would be the downside of using jQuery with React? Because I am transforming a site that is all jQuery for React and I see in many forums people saying that it is not a good practice to use jQuery next to React but without any complete explanation for disuse.

1 answer

6


React already has its own way of manipulating the DOM, so using jquery you would be forcing React to work a lot more, and render the elements more often, since it would not be under its control. Take a look at how React manipulates the DOM, the virtual gift it creates, to optimize the re-rendering of elements on the screen, and in addition, you can do everything more easily with React, there’s no point in using Jquery

Browser other questions tagged

You are not signed in. Login or sign up in order to post.