📜  “反应原生”组件动态子道具 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:54.234000             🧑  作者: Mango

代码示例1
const the_children = () => (Hello)
...

...
export const Component = ({ children }) => {
    return (
         {!!children && children()} 
    );
};