- what you could do in theory is move the state outside of react in something like redux.
- so JQuery does something -> statecontainer gets the update -> react will do something accordingly.
- in theory react is just a view library, so you could use jquery to build your framework and render everything with react still react can only “see and hear” what’s happening in react.
- it’s functional so it does not care about the global state unless you patch it in.
- I would not use jQuery in react unless it’s really necessary, which it’s probably not.
Almost everyone is saying: »Don’t use jQuery in React!«
But they don’t really explain why. They just say don’t use it. I haven’t found any good reasons yet. No problem to use it! Example: VS Don’t use it! Why:.
Continue reading “Why shouldn’t I use jQuery in React?”