Q. How do you pass data from parent to child component in React?

  • (A) Using setState
  • (B) Using props
  • (C) Using refs
  • (D) Using context
πŸ’¬ Discuss
βœ… Correct Answer: (B) Using props
Explanation: Props are used to pass data from parent to child components.
Explanation by: Mr. Dubey
Props are used to pass data from parent to child components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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