Albert Em’s Post

React used to freeze your entire app just to update a list. Before React 16, the reconciler was recursive. Once it started updating, it couldn't stop. 10,000 nodes? Main thread blocked for 500ms. Animations janky. Inputs unresponsive. User thinks the app is broken. Then Fiber came. The difference: Stack Reconciler (old): → Call stack-based recursion → Can't pause mid-render → All or nothing → Big update = frozen UI Fiber: → Linked list of "work units" → Can pause after each unit → Checks if browser needs the thread back → Yields, then continues next frame Same 10,000 nodes. But now React does a little work, gives the browser a chance to paint, handles your click event, then continues rendering. This is why modern React can do: → useTransition - mark updates as low priority → useDeferredValue - let urgent updates go first → Suspense - pause rendering, show fallback → Concurrent features - multiple renders in progress None of this was possible with the recursive approach. You can't pause a call stack halfway through. Fiber isn't just a rewrite. It's a different architecture that treats rendering as interruptible work instead of a blocking function call. That's why your React 18 app feels smoother than your React 15 app ever did. #react #javascript #frontend #webdev #reactjs #programming #webdevelopment #typescript #reactfiber #performance

  • text

If your app was entirely react and doesn't used external technologies, for said apps, nothing ever changed.

Like
Reply

To view or add a comment, sign in

Explore content categories