Skip to content

Instantly share code, notes, and snippets.

@KamalHunzai
Forked from geoffreydhuyvetters/react_fiber.md
Created April 25, 2017 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KamalHunzai/28848bdcf3d8a544dd9cadc0c251ed98 to your computer and use it in GitHub Desktop.
Save KamalHunzai/28848bdcf3d8a544dd9cadc0c251ed98 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

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