Live data from Hacker News

React v15.0

facebook.github.io

11–20 of 174 posts

Re: React v15.0

#11
> There were a number of large changes to our interactions with the DOM. One of the most noticeable changes is that we no longer set the data-reactid attribute for each DOM node.

Nice. I currently use another functional reactive virtual DOM data binding mechanism and the data attributes everywhere was one of the things that didn't appeal about react. Since react is getting crazy network effects from community I might check it out for my next project.

Re: React v15.0

#13
post #12

In ReactConf, Ben Alpert noted that there would be a ~10% performance improvement from v15.0. Is that still true?

Haven't benchmarked again, but it should be. This came from the document.createElement and reactid changes (and some associated internal refactors).

Re: React v15.0

#14
post #6

Earlier quoted context omitted.

Angular two lost me.

Yeah I wasn't too thrilled with Angular 2.x either. I had always been watching React and liking it, but I had no experience with it. So one day I decided to give it a whirl and see how far I could get converting the Angular 1.5 app I had already started and get it to the equivalent state in React. Long story short, I took 40+ hours of Angular 1.5 code and converted it to React code in a single 8 hour work day without…

Sounds like that is credit to both Angular and React for facilitating largely library/framework agnostic code.

I should mention that Angular 2 is quite a work in progress currently - even though it has the beta label, it still is very much far from production ready IMO. Components in Angular 2 are largely well conceived, excepting the interactions with inputs and outputs and how they interact between reusable components. React was cited by an Angular team member to me as being vastly easier to use when it comes to intercomponent communication currently - I trust the Angular team will eventually get it right, but for now there are certainly some holes.

Re: React v15.0

#15
Great news about the support for all the SVG tags and attributes. Now I can get rid of ugly dangerouslySetInnerHTML hacks for unsupported elements :)

Re: React v15.0

#16
post #7

Has Facebook removed the potentially dangerous patent restrictions? https://news.ycombinator.com/item?id=8985541

Yes, a year ago. They weren't potentially dangerous in the first place really but they updated them after the feedback to be much more explicit and literally no-one appears to have issue with it anymore.

Re: React v15.0

#17

Great to see React continue to improve and streamline as new versions come out. They've managed to avoid the huge bloat that happens to frameworks as they age. Kudos.

The thing is, they have bloated out the library quite a bit. One of their early selling points was how much smaller the React library was than Angular/Ember. Now the size of react.min.js has ballooned up to 145.4kb, which is only 10kb short of Angular, and with addons it's even bigger.

As someone who focuses heavily on small page size, that's a pretty harsh regression. Especially when compared to all the other VDom frameworks like Riot/Mithril/Cycle which are all much much smaller and achieve about as much (in my opinion).

Re: React v15.0

#18

As a recent converter from Angular to React, I'm so excited for this release. Great job Dan & React Core Team!

Never mind me, I just wrote some parts of the changelog :-).

In my opinion the biggest credit in this release goes to Ben who single-handedly turned around the internal implementation of React DOM to stop using ids. The big span change submitted by Michael was also possible thanks to Ben's work.

Re: React v15.0

#19
Is there a reason why the file size has exploded?

react.min.js is now 145.4kb. For comparioson, angular.min.js is 155.2kb. One of React's biggest selling points was that it was much smaller than Angular/Ember/Backbone etc, but I'm not sure that argument can be leveraged anymore. I think React is a culmination of some great ideas, but in my view this is a big step back. Especially since Angular/Ember/etc. offer a lot more tools out of the box.

I don't intend to tell anyone here that React is a bad framework because it's not, but I think it should be a big priority to tighten down the file size. When React is big pretty much all their selling points go out the window.

Perhaps they can split files up so you can just import the APIs you want. I wonder how much that would help with the bloat.

I feel like some of the smaller VDOM frameworks like Cycle/Mithril/Riot are a lot more appealing now, since they focus on small file size and low bloat.

Re: React v15.0

#20
post #17

Great to see React continue to improve and streamline as new versions come out. They've managed to avoid the huge bloat that happens to frameworks as they age. Kudos.

The thing is, they have bloated out the library quite a bit. One of their early selling points was how much smaller the React library was than Angular/Ember. Now the size of react.min.js has ballooned up to 145.4kb, which is only 10kb short of Angular, and with addons it's even bigger. As someone who focuses heavily on small page size, that's a pretty harsh regression. Especially when compared to all the other VDom f…

(Replied to your top-level comment at https://news.ycombinator.com/item?id=11451283.)
Post reply on HN