πŸ“Š React Js
Q. What is the correct way to create a component in React?
  • (A) function MyComponent()
  • (B) createComponent()
  • (C) Component.create()
  • (D) new Component()
πŸ’¬ Discuss
βœ… Correct Answer: (A) function MyComponent()

Explanation: Functional components in React are defined using regular functions.

Explanation by: Mr. Dubey
Functional components in React are defined using regular functions.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
47
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate