Q. How do you access props in a functional React component?

  • (A) Using this.props
  • (B) Passing props as function arguments
  • (C) Using state
  • (D) Using context
πŸ’¬ Discuss
βœ… Correct Answer: (B) Passing props as function arguments
Explanation: In functional components, props are passed as arguments to the function.
Explanation by: Mr. Dubey
In functional components, props are passed as arguments to the function.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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