止止_8fc8

关注

Log:2021-12-02

止止_8fc8

关注

阅读 146

2022-07-27


1.学习{props.children}的用法

function ChildComponent(props){
return (
<div>
{props.children}
</div>
);
}

function ParentComponent() {
return (
<ChildComponent>
<h1>abcd</h1>
<h2>efgh</h2>
</ChildComponent>

);
}

ReactDOM.render(
<ParentComponent />,
document.getElementById('root')
);


相关推荐

WikongGuan

Log:2021-12-06

WikongGuan 129 0 0

程序员知识圈

Log:2021-12-13

程序员知识圈 137 0 0

洛茄

Log:2021-12-01

洛茄 152 0 0

夏沐沐

Log:2021-12-18

夏沐沐 191 0 0

J简文

Log:2021-12-07

J简文 167 0 0

四月天2021

Log:2021-12-08

四月天2021 150 0 0

书写经典

学习springboot2的第3天(2021-12-02)08-底层注解-@Configuration详解

书写经典 82 0 0

冬冬_79d4

学习springboot2的第3天(2021-12-02)09-底层注解-@Import详解

冬冬_79d4 67 0 0

左小米z

学习springboot2的第3天(2021-12-02)10-底层注解-@Conditional条件装配

左小米z 89 0 0

回溯

学习springboot2的第3天(2021-12-02)06-基础入门-springboot的依赖管理特性

回溯 76 0 0

精彩评论(0)

0 0 举报