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

  • (A) Using props
  • (B) Using state
  • (C) Using callback functions
  • (D) Using refs
πŸ’¬ Discuss
βœ… Correct Answer: (C) Using callback functions
Explanation: A child can invoke a callback passed via props to send data to the parent.
Explanation by: Mr. Dubey
A child can invoke a callback passed via props to send data to the parent.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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