props.children - text between component's opening and closing tag
Mon Jan 17 2022 10:25:21 GMT+0000 (Coordinated Universal Time)
Saved by @KarenStewart #react.js
props.children props.children is available on every component. It contains the content between the opening and closing tags of a component. The string Hello world! is available in props.children in the Welcome component:
Comments