Which React feature allows you to display a fallback UI while a component tree waits for a component to be lazily loaded?

  • Context
  • Props
  • State
  • Suspense
React's Suspense feature allows you to display a fallback UI while a component tree waits for a component to be lazily loaded. Suspense helps manage the loading state of components and provides a smooth user experience during asynchronous component loading. While State, Props, and Context are essential in React, Suspense is specifically designed for handling loading states.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *