Upgrade to Pro — share decks privately, control downloads, hide ads and more …

React Advanced 2023 - Concurrent React Made Easy

Henrique Inonhe
October 23, 2023
24

React Advanced 2023 - Concurrent React Made Easy

Henrique Inonhe

October 23, 2023
Tweet

Transcript

  1. • Input Fields • Buttons • Toggles • Sliders •

    “Smaller” UI Updates • Huge List • Dashboard • Spreadsheet • Navigations • “Bigger” UI Updates
  2. Synchronous Rendering Update! Main Thread (Your JS code runs here)

    Render Event Event Event Event Event Event
  3. Prioritization Without With !!! !!! !!! !! !! ! !

    ! !!! !!! !!! !! !! ! ! ! Interruptibility Without With
  4. High Priority Renders Low Priority Renders • Synchronous • Blocking

    • Non-interruptible • Interrupt low priority renders • Asynchronous • Non-blocking • Interruptible • Run after high priority renders
  5. Low Priority Renders • Asynchronous • Non-blocking • Interruptible •

    Run after high priority renders High Priority Renders • Synchronous • Blocking • Non-interruptible • Interrupt low priority renders
  6. High Priority Renders • Synchronous • Blocking • Non-interruptible •

    Interrupt low priority renders Low Priority Renders • Asynchronous • Non-blocking • Interruptible • Run after high priority renders