A

Admin • 802.91K Points
Coach

Q. How is `props.children` used in React?

  • (A) To access children passed between component tags
  • (B) To access child elements in DOM
  • (C) To define default props
  • (D) To update state
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
props.children gives access to elements nested inside a component's opening and closing tags.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.