Question · JavaScript and React course · Module 16: Error Handling and Suspense

Using React.lazy()

Which scenario is the best use case for React.lazy() code-splitting?

Answer options

  • Pages and views loaded in application routing
  • Small components rendered on every page
  • Header and footer visible at all times
  • Simple buttons and icons

You can check the correct answer by solving this task in the CodeWorlds game.