# Function useTransition

- useTransition(): [boolean, TransitionStartFunction]

- Allows components to avoid undesirable loading states by waiting for content to load before transitioning to the next screen. It also allows components to defer slower, data fetching updates until subsequent renders so that more crucial updates can be rendered immediately.

  The `useTransition` hook returns two values in an array.

  The first is a boolean, React’s way of informing us whether we’re waiting for the transition to finish. The second is a function that takes a callback. We can use it to tell React which state we want to defer.

  If some state update causes a component to suspend, that state update should be wrapped in a transition.

  #### Returns [boolean, TransitionStartFunction]

  #### See

  https://react.dev/reference/react/useTransition

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2120