Live data from Hacker News

Facebook Announces React Fiber, a Rewrite of Its React Framework

techcrunch.com

21–30 of 422 posts

Re: Facebook Announces React Fiber, a Rewrite of Its React Framework

#21

Sorry, it wasn't entirely clear to me from the article. Is React Fiber going to be a completely new project, or is it just a name for the new release? It seems like the latter to me since there's no API changes...

It's a rewrite of the internals, particularly the diffing/reconciliation algorithm. React Fiber involves effectively re-implementing the JS call stack using a data structure called "fibers" to track work that needs to be done.

Re: Facebook Announces React Fiber, a Rewrite of Its React Framework

#22
post #14
post #8

Is this as big a change as Angular 2 for you react devs?

Not at all, nothing incompatible changes on the surface. There are more features and no breaking changes. It's mostly all under the hood! There will be new public api's to build your own custom rendering engine, ex how there is react-dom for browsers, react-native for mobile, and it will get easier to target new platforms thanks to fiber.

For those who have side-effects in their component lifecycle methods might have some problems when they turn on async fibers.

Re: Facebook Announces React Fiber, a Rewrite of Its React Framework

#23
post #15
post #7

> The company hasn’t previously talked about React Fiber Except, you know, the entire presentation on it at React Conf back in March.

Or on twitter, or on github :)

Or the dedicated website on Fiber's progress.

http://isfiberreadyyet.com/

Re: Facebook Announces React Fiber, a Rewrite of Its React Framework

#24
post #8

Is this as big a change as Angular 2 for you react devs?

No, this is mostly an internal change, the API is not changing.

Some of the API semantics are changing, e.g. componentWillMount can't be trusted any more (it can fire many times) but they're going to be pretty small.

Re: Facebook Announces React Fiber, a Rewrite of Its React Framework

#25
post #7

> The company hasn’t previously talked about React Fiber Except, you know, the entire presentation on it at React Conf back in March.

It's TechCrunch... I won't say anymore because I'm also a member of the press... but it took me 3 seconds to find this on Google: https://gist.github.com/duivvv/2ba00d413b8ff7bc1fa5a2e51c61b...

Somebody forgot to fact-check his article. That's for sure.

Re: Facebook Announces React Fiber, a Rewrite of Its React Framework

#28
post #26

Feels like every month they [re]announce React Fiber... there's no reason why this needs to be repeated again and again. And every time it shoots up to #1 on HN.

Sorry! Definitely no intention to bombard you with the same news. It's true that we had a couple talks at last month's React Conf but Facebook's conference F8 is this week which comes with a wide publicity push. Hopefully the next time you hear about it will be the final open source release later this year!

Re: Facebook Announces React Fiber, a Rewrite of Its React Framework

#29

any news on bundle size? and maybe Closure Compiler compatibility for dead code elimination?

No final numbers yet, but we recently switched to Rollup for our own builds which will be part of 16.0, and we'll do some more work on file size in the next few months.

For DCE, we've started splitting some features like createClass out of the main package (https://facebook.github.io/react/blog/2017/04/07/react-v15.5...) which will reduce the bundle size for anyone not using them, regardless of how they compile their JS.

Post reply on HN