3 ms·
By day I code in react, but I'm working on a side project where I needed to use a specific already developed calendar widget. Found the one I needed and it was
by jonotime 4y ago
By day I code in react, but I'm working on a side project where I needed to use a specific already developed calendar widget. Found the one I needed and it was written in jquery. I started trying to get react and jquery to get along, but in the end I ended up scrapping react altogether. This of course was not my initial intention.
- wetpaws 4y agoTbh this is not a problem of react
- duxup 4y agoI feel like React and JQuery approach things so differently that it almost never should be a question of “Should I use React or JQuery?”…
- simion314 4y agoJQuery had the ideas of creating independent and reusable components, most of the new frameworks encourage a more ugly architecture IMO, though React (the first versions I used) was also good at promoting the idea of independent components. I prefer the idea where a component has no idea about the parents or global state and can only raise events.
- no_wizard 4y agoyou might like web components. Their main communication mechanism is leveraging custom events
- diob 4y agoWhy couldn't you use both? I've never had issues with them together.
- tofuahdude 4y agoReally depends on how they're being used. If they're independently managing their own parts of the DOM, it can work (though still a dev headache imo). If its a "react app", ie react is managing the entire dom, having two representations of the dom is a v bad idea in that one can make changes that the other is unaware of. Or visa versa.