Skip to content

Instantly share code, notes, and snippets.

@geoffreydhuyvetters
Last active January 13, 2023 06:49
Show Gist options
  • Save geoffreydhuyvetters/2ba00d413b8ff7bc1fa5a2e51c61ba43 to your computer and use it in GitHub Desktop.
Save geoffreydhuyvetters/2ba00d413b8ff7bc1fa5a2e51c61ba43 to your computer and use it in GitHub Desktop.
What is React Fiber? And how can I try it out today?

What is React Fiber? And how can I try it out today?

what?

React Fiber is an ongoing reimplementation of React's core algorithm. It is the culmination of over two years of research by the React team.

why?

The goal of React Fiber is to increase its suitability for areas like animation, layout, and gestures. Its headline feature is incremental rendering: the ability to split rendering work into chunks and spread it out over multiple frames.

Other key features include the ability to pause, abort, or reuse work as new updates come in; the ability to assign priority to different types of updates; and new concurrency primitives.

some hints on what we could get as new features (mostly marked with unstable_... for now)

how can I try it out today?

  1. git clone https://github.com/facebook/react
  2. gulp react:extract-errors (i've added an npm script to avoid installing gulp globally)
  3. npm run build
  4. use react.js / react-dom-fiber.js in the /build folder

examples?

status?

Fiber isn't completely ready yet http://isfiberreadyyet.com/.
Scheduled for release in 16.0.0 / 17.0.0 ? (see Dan's comment below)

thanks @threepointone for the build steps

@renso3x
Copy link

renso3x commented Feb 11, 2017

Excited on this one!

@Ahrengot
Copy link

"Official example" link is broken

@NetguruGist
Copy link

There aren’t many articles on this matter, yet this one – Should I be worried about React Fiber? – might be a good starting point on the topic. Read more on what contribution to the system it provides as well as what are the key benefits of React Native contains.

@cimi
Copy link

cimi commented May 10, 2017

The instructions in the gist no longer work as since April 2017 react no longer uses gulp to build.

@ReeganExE
Copy link

That's the reason I've moved to react in the first place, and it was one great decision.

Most of us seem to have same reason for moving to react
I unsderstand the decision of Angular team, but... I don't want to learn a lot of things to do the same thing.

@nikolal
Copy link

nikolal commented May 25, 2017

@ReeganExE

I would say, at least one third of the NG community. 👍

@TallOrderDev
Copy link

Fiber is now in beta, and is ready.

@alexhtech
Copy link

Awesome! I have successfully install fiber and test my isomorphic application... all works fine!

@jiovan
Copy link

jiovan commented Aug 26, 2017

Nice.

@Eli-Black-Work
Copy link

Is React Fiber now being referred to as Concurrent Mode?

@geoffreydhuyvetters
Copy link
Author

No, fiber and concurrent mode are 2 different things, Fiber was a reworking of the React internals and was released with React 16

@Eli-Black-Work
Copy link

Ah, got it, thanks. Appreciate the followup :) Would be cool if we could 👍 on people's comments in Gist, too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment