不知道原理一点点试出来的
好菜啊
第一个{ } 应该是隐式实现了xx
第二个反正就是不能直接用 要return 否则jsx不认
【而且这个return 不可以换行,换行也不认识了!@!!!!】
{aaa.map((big: any) => (
<Box>
{big.style_name}
{big.bbb.map((ccc:ddd)=>{
return <Box>
<eeeImage ccc={ccc} />
</Box>
})
}
</Box>
))}
参考 可以看这个的写法
const structureRoute = () => {
return routes.map((item) => {
return routesName.map((vm) => {
if (item.path == vm) {
return (
<Route
exact={item.exact}
path={vm}
component={item.component}
></Route>
);
}
});
});
};
在 https://blog.csdn.net/weixin_46600931/article/details/128867981