Q. Which of these allows dynamic import in React?

  • (A) require()
  • (B) import *
  • (C) React.lazy()
  • (D) useImport()
πŸ’¬ Discuss
βœ… Correct Answer: (C) React.lazy()
Explanation: React.lazy() is used for code-splitting by dynamically importing components.
Explanation by: Mr. Dubey
React.lazy() is used for code-splitting by dynamically importing components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
89
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate