插槽
摘要:
function App() { const name = 'Comp Name' return ( <Comp name={name}> <div slot="s1">solt1</div> <div slot="s2">solt2</div> </Comp> ) } import { React 阅读全文
posted @ 2022-10-06 23:32 In-6026 阅读(17) 评论(0) 推荐(0) 编辑
posted @ 2022-10-06 23:32 In-6026 阅读(17) 评论(0) 推荐(0) 编辑