React官网解读

Adding Interactivity

组件的 props.children 是什么?
React支持在自定义组件时,在其中嵌套 JSX 结构。也就是说,props.children使得组件标签也能像普通的 HTML 标签那样编写内嵌的结构,并且childre不限于是JSX结构,也可以是普通文本等。
https://wangjintian.com/2020/11/17/props.children 和容器类组件/
https://johninch.github.io/Roundtable/Question-Bank/react/children.html#组件的props-children是指什么

posted @ 2022-07-11 06:31  Lylee  阅读(54)  评论(0)    收藏  举报