Which React feature works in tandem with React.lazy to display fallback UI while a component is being lazily loaded?

  • React.Suspense
  • React.Fallback
  • React.LazyUI
  • React.Loading
React.Suspense is the React feature that works with React.lazy to display a fallback UI while a component is being lazily loaded. This helps improve the user experience by showing a loading indicator or a fallback UI while the required component is fetched and rendered lazily. Other options like React.Fallback, React.LazyUI, and React.Loading are not standard React features.
Add your answer
Loading...

Leave a comment

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