A

Admin • 828.03K Points
Coach

Q. How do you pass props to a component in React?

  • (A) Using the context API
  • (B) Using the `props` object
  • (C) Using Redux
  • (D) Using useEffect
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
Props are passed to components via attributes and accessed via the `props` object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.