News for hackers. Stuff that matters.
Re:Removing jQuery from GitHub.com frontend by thermodynthrway on Wednesday July 25, 2018 @08:26PM (#17614167)
Development with React is becoming similar to old school event driven desktop apps, thankfully.

If I want a fancy drop-down with accessibility support and theming etc, there's probably 50 different libraries with components I can pull in and use with little fuss. A few lines of code to import and register event listeners.

I was a huge user of jQuery for years, and it also has quite nice UI libraries. But the power of React is the standardized scaffold and lifecycle. I can pull in UI components from almost any library and use them intuitively. Mix and match them on the same page.

Trying to do that in jQuery will quickly drag you to hell.

Re:Removing jQuery from GitHub.com frontend by mariusmg on Thursday July 26, 2018 @08:14AM (#17616794)
>Trying to do that in jQuery will quickly drag you to hell.

Can you elaborate on this please ? I've used lots of libraries with jquery and haven't encountered problems.

Re:Removing jQuery from GitHub.com frontend by thermodynthrway on Thursday July 26, 2018 @09:37AM (#17617358)
Easy to cause it by combining bootstrap components and JQueryUI.

In React you can "scope" a components CSS so none of the styling leaks out