Question · JavaScript and React course · Module 2: Components and Props

Prop children

What is props.children in React?

Answer options

  • Content placed between the opening and closing tags of a component
  • Child components in the component tree
  • An array of all props
  • A method for creating child components
Show the answer

Correct answer:

  • Content placed between the opening and closing tags of a component