You may have heard somebody mention React Fibers recently, and even more recently that Suspense lets you use async functions with React. Read on for a dive into what an async function is, and what they have to do with Fibers!
await syntax, on top of 2015’s generator functions (
yield). This section explores what these language features do, and how they relate to React’s rendering model.
Let’s take a step back and discuss normal function calls. …
tl;dr: If you’re building a React app (or a framework) and want to achieve faster re-rendering on state updates, make sure to look at how Redux uses
unstable_batchedUpdates from the
Over the last few months we’ve been working on a state management framework for React. One of the things we were hoping to gain by using immer.js internally was improved performance due to more selective re-rendering, especially when updating state that affected a small number of components. Our initial benchmark was a visualization of a prime sieve up to 10,000:
Initially, we were sort-of right. The Prodo version…