A

Admin • 833.24K Points
Coach

Q. Which of these allows dynamic import in React?

  • (A) require()
  • (B) import *
  • (C) React.lazy()
  • (D) useImport()
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

React.lazy() is used for code-splitting by dynamically importing components.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.