Tahnik Mustasin Tahnik Mustasin - 1 month ago 15
React JSX Question

How to use jquery ui with React JS?

I have seen a couple of examples in google but all of them seems to be outdated. Any idea how I can use Jquery UI with react?

Answer

React doesn't play well with libraries that do direct DOM mutations. If something else mutates the DOM where React is attempting to render, it will throw errors. If you had to make this work, your best compromise is to have different parts of your page which are managed by different things, for example a div which houses your jquery component(s), and then some other div which contains your React component(s). Communicating between these disparate (jquery and react) components will be difficult however and honestly it's probably better to just choose one or the other.

Comments