React-60:render props Always_positive 2021-04-25 90 阅读1分钟 组件间包含的内容是什么? 包含的内容是传递给A组件的信息,A组件通过this.props.children可以获得 形成父子组件的两种形式 第一种:直接嵌套 A组件通过this.props.children调用B组件 第二种:A组件中调用B组件 通过renderProps向一个组件的子组件传递props