Q. Which method is used to pass props to a component?

  • (A) this.props()
  • (B) props.push()
  • (C) Passing them as attributes
  • (D) props.assign()
πŸ’¬ Discuss
βœ… Correct Answer: (C) Passing them as attributes
Explanation: Props are passed to components like HTML attributes in JSX.
Explanation by: Mr. Dubey
Props are passed to components like HTML attributes in JSX.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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