跳转到内容

组件参数无效。

错误信息示例
InvalidComponentArgs:传递给 <MyAstroComponent> 组件的参数无效。

Astro 组件不能通过函数调用的方式手动渲染,例如 Component(){items.map(Component)}。请使用组件语法 <Component />{items.map(item => <Component {...item} />)}

贡献 社区 赞助