Wrap tag in example error message in code backticks (#6063)

This commit is contained in:
Chris Swithinbank 2023-01-31 16:09:02 +01:00 committed by Matthew Phillips
parent 0c3c216ef2
commit 81f6ece5ca

View file

@ -419,7 +419,7 @@ See https://docs.astro.build/en/guides/server-side-rendering/ for more informati
* @docs * @docs
* @message * @message
* **Example error messages:**<br/> * **Example error messages:**<br/>
* InvalidComponentArgs: Invalid arguments passed to <MyAstroComponent> component. * InvalidComponentArgs: Invalid arguments passed to `<MyAstroComponent>` component.
* @description * @description
* 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 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} />)}`.
*/ */