What is the purpose of React’s startTransition API compared to useTransition?

React Developer Hard

React Developer — Hard

What is the purpose of React’s startTransition API compared to useTransition?

Key points

  • startTransition is used outside components, while useTransition is a hook
  • useTransition includes an isPending boolean for loading indicators
  • startTransition is imperative, useTransition is a hook

Ready to go further?

Related questions