From 1529df1d80d1b9a645155937f3deab9c240dcb77 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Wed, 6 Apr 2022 15:53:47 -0400 Subject: [PATCH] Improve `` docs reference (#301) This might deserve a section on another page like `/component-syntax`, but it's a start. "Just use ``" doesn't convey that Astro doesn't duplicate `` elements in child components of layouts in a way that `react-helmet` does It was a bit confusing wording wise equating the two, so I added a caveat. From what I understand, the current recommendation to add to `` from a lower component is: ```astro // MainLayout.astro tada this is my title in regular head this is a different title now :D ``` --- src/pages/en/comparing-astro-vs-other-tools.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/en/comparing-astro-vs-other-tools.md b/src/pages/en/comparing-astro-vs-other-tools.md index 8475b90ef496c..28163dcf1fed1 100644 --- a/src/pages/en/comparing-astro-vs-other-tools.md +++ b/src/pages/en/comparing-astro-vs-other-tools.md @@ -253,7 +253,7 @@ Astro component syntax is a superset of HTML. It was designed to feel familiar t | Requires JS import | No | Yes, `jsxPragma` (`React` or `h`) must be in scope | | Fragments | Automatic top-level, `` or `<>` inside functions | Wrap with `` or `<>` | | Multiple frameworks per-file | Yes | No | -| Modifying `` | Just use `` | Per-framework (``, ``, etc) | +| Modifying `` | Just use `` in top-level pages | Per-framework (``, ``, etc) | | Comment Style | `` | `{/_ JavaScript _/}` | | Special Characters | ` ` | ` ` | | Attributes | `dash-case` | `camelCase`|