summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-11-19 15:02:24 -0800
committerGravatar GitHub <noreply@github.com> 2021-11-19 15:02:24 -0800
commitb35e0491842a75fa8fbca594f8d69bd35bb7e3b5 (patch)
tree6f5226aa926247978ac225286a4bf350de3a4b80
parent8d7abfcbc5d178b114ee01038b357d8487209493 (diff)
downloadastro-b35e0491842a75fa8fbca594f8d69bd35bb7e3b5.tar.gz
astro-b35e0491842a75fa8fbca594f8d69bd35bb7e3b5.tar.zst
astro-b35e0491842a75fa8fbca594f8d69bd35bb7e3b5.zip
add more detail on "no jsx components" migration guide section
-rw-r--r--docs/src/pages/migration/0.21.0.md7
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