startTransition receives a function. React calls it immediately and marks the state updates scheduled during that call as transition updates.