我对 children 的这些不同用途以及它们为什么起作用感到困惑.有谁能解释一下吗?子函数是Reaction本机函数的默认参数吗?
const Component = ({
children = <Text>Insert Icon</Text>,
}) => {
return ( {children} );
};
const Component = ({
{children},
}) => {
return ( {children} );
};
不是问题,只是想要一个解释