What are children? or What are children prop?

Question
  • Children’s props are used to pass components to other components as properties.
  • You can access it by using {props. children}
  • The children, in React, refer to the generic box whose contents are unknown until they’re passed from the parent
  • component.
  • It simply means that the component will display whatever is included in between the opening and closing tags while
  • invoking the component.
  • The component would usually be invoked from App component.
3 years 2021-08-07T05:53:21+00:00 11 views 0

Leave an answer

Browse
Browse