DEV Community

Discussion on: Refactoring JQuery to ES6

Collapse
 
shane profile image
Shane McGowan

Very interesting to see the side by side of the old and the new. Not supporting IE greatly improves things also

It is tough to know at what point to remove old code that is very legacy but still does the desired job

Collapse
 
jcsh profile image
Justin Ho • Edited

Thanks for the reply Shane!

Yes, while I've never had the pleasure to support old IE, the thought of polyfills sounds extremely tedious without tools like babel so I do understand where jquery came in there.

I would also agree not to rewrite things if it does not provide business value.

The reason I had the idea for this post though was because I helped rewrite an old app to React and removing the jQuery dependency was something I did fairly quickly.

This made me realize I really didn't need it for most things so I wrote about it using my own project as example.