0
Challenge · 96React 19 Frontier
useTransition
React 19used in ~25% of apps
A search box that filters 10,000 rows on every keystroke feels broken — each letter freezes while the list re-renders. useTransition lets you tell React "the list update can wait; the keystroke can't," so typing stays instant.
Core idea. useTransition gives you a startTransition wrapper that marks the state updates inside it as non-urgent (a transition), so React keeps urgent updates like typing responsive and renders the heavy work in the background — plus an isPending flag to show that the slow update is still catching up.
poke it, drag it,
try to break it
try to break it
no slides here.
you drive.
you drive.
Playground, this isn't a screenshot
keystrokes accepted: 0
URGENT · the input
setText(value) is never wrapped — the controlled value stays urgent so the box always shows your latest keystroke.
LOW-PRIORITY · heavy list60 rows
react-0
render-1
state-2
effect-3
memo-4
hook-5
fiber-6
lane-7
commit-8
queue-9
react-10
render-11
state-12
effect-13
memo-14
hook-15
fiber-16
lane-17
commit-18
queue-19
react-20
render-21
state-22
effect-23
memo-24
hook-25
fiber-26
lane-27
commit-28
queue-29
react-30
render-31
state-32
effect-33
memo-34
hook-35
fiber-36
lane-37
commit-38
queue-39
react-40
render-41
state-42
effect-43
memo-44
hook-45
fiber-46
lane-47
commit-48
queue-49
react-50
render-51
state-52
effect-53
memo-54
hook-55
fiber-56
lane-57
commit-58
queue-59
useTransition marks the heavy list update non-urgent: each keystroke commits the input first, the list catches up after (dimmed while isPending). Type fast — the box never lags.
↑ play a little first, then dig in