πŸ“Š React Js
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

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