[英]Passing components/JSX as a prop to the child component without using this.props.children
[英]What is the difference between calling components in JSX and passing them as children props?
所以我在 web 上導航,我看到一位高級開發人員在談論大多數初級開發人員不知道在JSX 中調用組件和將它們作為子屬性傳遞之間的區別。 老實說,我不知道有什么區別。 任何人都可以告訴我它們之間的區別,是性能,還是架構......
謝謝你。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.