A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

In functional components, props are passed as arguments to the function.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.