Live data from Hacker News

React is the new jQuery

bradfrost.com

21–30 of 206 posts

Re: React is the new jQuery

#21

If you tear out something like jQuery, you’re going to have to figure out a way to get those accordions to expand and collapse again. If you tear out React, you get a blank page. React is a big commitment. This is probably the only real concern I see. jQuery is a library for DOM manipulation. It can co-exist with many other libraries. React is an entire framework. These days you need jquery less because browsers are…

What does "an entire framework" mean? Because you can just make React the little news and weather widget in the corner of your app / website, as the only React component. Same with Vue. The people for whom ripping out React or Vue leads to a blank page are those who wanted an app from the ground-up. If anything, React is losing because it doesn't include enough out of the box. If you wanted to build a news widget, fi…

That's because you aren't using Reason-React

Re: React is the new jQuery

#22

Earlier quoted context omitted.

What does "an entire framework" mean? Because you can just make React the little news and weather widget in the corner of your app / website, as the only React component. Same with Vue. The people for whom ripping out React or Vue leads to a blank page are those who wanted an app from the ground-up. If anything, React is losing because it doesn't include enough out of the box. If you wanted to build a news widget, fi…

That's because you aren't using Reason-React

Could you explain more about Reason? I've been curious about it for awhile.

Re: React is the new jQuery

#23
This comes from a well-known and respected thought leader. There are different types of thoughts, though. This is simply an observation:

> Don’t @ me I’m not trying to start a controversy. I’m only stating an observation.

https://twitter.com/SaraSoueidan/status/1001189524477743105

React, like jQuery, could have done more to keep people from writing bad code. With React, they made the same mistake that Angular did, which was to impose strict rules on all developers. Vue, to its credit, doesn't make this mistake. It's much less opinionated about state management.

Re: React is the new jQuery

#24

Moved from Vue to React. A couple things drove this: Typescript support for Vue was kind of weak, and the interception of events and reactive elements ended up creating more bugs. I do love how Vue is easy to get up and going fast, but React seems more compatible with a growing team where you want stronger guarantees.

i hope their switch to managing reactivity via Proxy solves stuff like this.

Re: React is the new jQuery

#25
post #10

<3 jQuery, maybe nostalgia talking but still one of my favorite pieces of software ever. Made DOM manipulation fun.

> Made DOM manipulation fun.

same! Jquery is still quite useful and powerful. This is also what rails does for me; makes web development fun. Or highcharts making charts fun, or elasticsearch making search fun. To me that's a testament to elegantly solving a problem. I just don't get those fuzzies with react.

Re: React is the new jQuery

#26
I agree with the spirit of what he's saying, although I don't think jQuery is a very good comparison to use.

React is a decision. I'm speaking in broad generalizations because I don't know how to put this principle into more specific terms, but good programmers should avoid making decisions for as long as possible. This is the same reason why I caution people against using test frameworks. Most of the time when you start coding an application you won't have enough information to make any educated decisions about it.

This is a huge advantage that Vue has over React. You can use Vue for just one component out of your entire app and it's fine. It is fairly easy to separate it from all of the rest of your application logic and that means by extension it's fairly easy to rip it out later. Or at least... easy enough.

It's still not perfect. I dislike how hard it is to make its templates fail gracefully when Javascript is disabled. I dislike that it uses setters in its data model, which discourages immutable programming. I dislike a few other things as well.

At some point, someone will make a better framework than Vue, probably by building something even smaller and even more focused than Vue already is. But in the meantime, if you are going to use a framework for two-way data bindings, you should probably be using Vue instead of React. Opinion me, of course.

Re: React is the new jQuery

#27
I don't buy it.

ReactJS is a power tool and it takes some learning.

If your primary concern is about your initial learning curve then you should look elsewhere such as VueJS but I'm glad of the power of ReactJS.

Changing class to className is not a big deal, nor are the minor other bits and pieces mentioned in the post.

Re: React is the new jQuery

#29
I don’t really agree for various reasons. That said, I’m not a huge fan of react, but am stuck working with a few code bases that use it.

I prefer vue, but I dislike that it’s essentially a one man show.

Re: React is the new jQuery

#30

I don’t really agree for various reasons. That said, I’m not a huge fan of react, but am stuck working with a few code bases that use it. I prefer vue, but I dislike that it’s essentially a one man show.

Vue isn’t a one man show. It has a sizable team behind it.
Post reply on HN