Share
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.
Leave an answer