Slide 1

Slide 1 text

Concurrent React Made Easy

Slide 2

Slide 2 text

Henrique Inonhe @HInonhe Developer - Codeminer42 Links (Slides, Social Media, etc)

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

● Input Fields ● Buttons ● Menus ● Sliders ● “Smaller” UI Units

Slide 7

Slide 7 text

● Input Fields ● Buttons ● Menus ● Sliders ● “Smaller” UI Units ● Huge List ● Dashboard ● Spreadsheet ● Navigations ● “Bigger” UI Units

Slide 8

Slide 8 text

Slow Render Example

Slide 9

Slide 9 text

Synchronous Rendering Update! Main Thread (Your JS code runs here) Render Event Event Event Event Event Event

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Concurrent React

Slide 12

Slide 12 text

Concurrent Rendering

Slide 13

Slide 13 text

Synchronous Rendering

Slide 14

Slide 14 text

Concurrent Rendering

Slide 15

Slide 15 text

Synchronous Rendering

Slide 16

Slide 16 text

Concurrent Rendering

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Interruptibility Prioritization Without With Without With !!! !!! !!! !! !! ! ! ! !!! !!! !!! !! !! ! ! !

Slide 19

Slide 19 text

Prioritization Without With !!! !!! !!! !! !! ! ! ! !!! !!! !!! !! !! ! ! ! Interruptibility Without With

Slide 20

Slide 20 text

Interruptibility Without With Prioritization Without With !!! !!! !!! !! !! ! ! ! !!! !!! !!! !! !! ! ! !

Slide 21

Slide 21 text

Interruptibility + Prioritization ! !!! ! !!!

Slide 22

Slide 22 text

High Priority Renders Low Priority Renders ● Synchronous ● Blocking ● Non-interruptible ● Interrupt low priority renders ● Asynchronous ● Non-blocking ● Interruptible ● Run after high priority renders

Slide 23

Slide 23 text

Low Priority Renders ● Asynchronous ● Non-blocking ● Interruptible ● Run after high priority renders High Priority Renders ● Synchronous ● Blocking ● Non-interruptible ● Interrupt low priority renders

Slide 24

Slide 24 text

High Priority Renders ● Synchronous ● Blocking ● Non-interruptible ● Interrupt low priority renders Low Priority Renders ● Asynchronous ● Non-blocking ● Interruptible ● Run after high priority renders

Slide 25

Slide 25 text

Concurrent Rendering ~ Branching Workflow

Slide 26

Slide 26 text

Concurrent Rendering ~ Branching Workflow

Slide 27

Slide 27 text

Concurrent Rendering ~ Branching Workflow

Slide 28

Slide 28 text

Concurrent Rendering ~ Branching Workflow

Slide 29

Slide 29 text

Concurrent Rendering ~ Branching Workflow

Slide 30

Slide 30 text

!!!!!!! !

Slide 31

Slide 31 text

!!!!!!! !

Slide 32

Slide 32 text

!!!!!!! !

Slide 33

Slide 33 text

Using Concurrent Features

Slide 34

Slide 34 text

Without Concurrent Features

Slide 35

Slide 35 text

With Concurrent Features

Slide 36

Slide 36 text

Without Concurrent Features

Slide 37

Slide 37 text

With Concurrent Features

Slide 38

Slide 38 text

Rendering Lifecycle

Slide 39

Slide 39 text

Rendering Lifecycle

Slide 40

Slide 40 text

Rendering Lifecycle

Slide 41

Slide 41 text

Rendering Lifecycle

Slide 42

Slide 42 text

Rendering Lifecycle

Slide 43

Slide 43 text

Rendering Lifecycle

Slide 44

Slide 44 text

Rendering Lifecycle

Slide 45

Slide 45 text

Rendering Lifecycle

Slide 46

Slide 46 text

Rendering Lifecycle

Slide 47

Slide 47 text

Rendering Lifecycle

Slide 48

Slide 48 text

!!!!!!! !

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

!!!!!!! !

Slide 51

Slide 51 text

!!!!!!! !

Slide 52

Slide 52 text

!!!!!!! !

Slide 53

Slide 53 text

https://blog.codeminer42.com/everything-you-need-to-know-about -concurrent-react-with-a-little-bit-of-suspense/ Everything You Need to Know About Concurrent React

Slide 54

Slide 54 text

Thanks! Links (Slides, Social Media, etc)