Skip to content

组件参数无效。

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

¥Example error messages:
InvalidComponentArgs: Invalid arguments passed to <MyAstroComponent> component.

¥What went wrong?

Astro 组件无法通过函数调用手动渲染,例如 Component(){items.map(Component)}。首选组件语法 <Component />{items.map(item => <Component {...item} />)}

¥Astro components cannot be rendered manually via a function call, such as Component() or {items.map(Component)}. Prefer the component syntax <Component /> or {items.map(item => <Component {...item} />)}.

Astro 中文网 - 粤ICP备13048890号