diff options
Diffstat (limited to '')
-rw-r--r-- | docs/src/pages/migration/0.21.0.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/src/pages/migration/0.21.0.md b/docs/src/pages/migration/0.21.0.md index 58c049d5a..c60542136 100644 --- a/docs/src/pages/migration/0.21.0.md +++ b/docs/src/pages/migration/0.21.0.md @@ -82,9 +82,12 @@ setup: | </MyReactComponent> ``` -## JSX in Frontmatter +## Components in Frontmatter + +Previously, you could create mini Astro Components inside of the Astro Frontmatter, using JSX syntax instead of Astro's component syntax. This was always a bit of a hack, but in the new compiler it became impossible to support. We hope to re-introduce this feature in a future release of Astro using a different, non-JSX API. + +To migrate to v0.21, please convert all JSX Astro components (that is, any Astro components created inside of another component's frontmatter) to standalone components. -In Astro v0.21, JSX cannot be used within Frontmatter. ## Environment Variables |