r/javascript • • May 15 '16

Is React the new jQuery?

https://medium.com/outsystems-engineering/react-is-the-new-jquery-64ae6d468358#.5wfm7uriq
0 Upvotes

13 comments sorted by

View all comments

0

u/[deleted] May 15 '16

[deleted]

-5

u/everdimension May 15 '16

3kb library with react API

most small/medium business sites simply don't need a client-side MVC or framework

Very disputable.

1

u/everdimension May 15 '16

So I guess clarification is implied :)

If you start bringing any logic at all to your client side, you'd better make it structured. Otherwise you're saying "This website will never grow to need a complex client-side interface, and I'm making damn sure it'll never scale by refusing to bring any structure".

"jQuery vs react" is of course a meaningless comparison, but that doesn't mean one cannot be used in place of another. JQuery is imperative, react is declarative.

If you start bringing any logic at all to your client side, you'd better make it clear and maintainable. You like jQuery and know how to write good and clear code with it? Great! Use jQuery. Just don't say that "this website doesn't need react because, well, it's react, and it sure needs jQuery, because, well, everyone surely needs jQuery". And keep in mind that jquery is not that lightweight either. Abovementioned vue.js is only 74.5 KB, while compressed, production jQuery is 83 KB.

0

u/[deleted] May 15 '16

[deleted]

1

u/everdimension May 15 '16

Alright, with this I agree. Still, jquery gets rid of lots of inconsistencies even nowadays. But using no DOM library has become accepted, indeed.

The decision that is left is whether one wished to bring declarative UI handling to the app. In that view libraries like react and vue can still be a good idea even for websites with little client side logic.