summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorGravatar Allen Joslin <94997667+ajoslin-rm@users.noreply.github.com> 2021-12-13 16:27:54 -0500
committerGravatar GitHub <noreply@github.com> 2021-12-13 16:27:54 -0500
commitb9c5778d45d1639f759e920edb1f6d1cb52b059f (patch)
tree3608c31711d4fc75aa296a742975b6f730b9e707 /docs/src
parent6570a204428c11ff233be3ceb7554214a678a6bc (diff)
downloadastro-b9c5778d45d1639f759e920edb1f6d1cb52b059f.tar.gz
astro-b9c5778d45d1639f759e920edb1f6d1cb52b059f.tar.zst
astro-b9c5778d45d1639f759e920edb1f6d1cb52b059f.zip
Update astro-components.md (#2181)
* Update astro-components.md be a little clearer right up front about what you can do I ran this code in stackBlitz minimal - which listed no renders. Note: I don't know enough yet about Astro to say why I could use React-style interpolation at compile time to insert a variable into the html -- so I can't add a phrase describing why it works... * Update docs/src/pages/core-concepts/astro-components.md Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/pages/core-concepts/astro-components.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/pages/core-concepts/astro-components.md b/docs/src/pages/core-concepts/astro-components.md
index c0ebebf58..2394f3696 100644
--- a/docs/src/pages/core-concepts/astro-components.md
+++ b/docs/src/pages/core-concepts/astro-components.md
@@ -81,9 +81,9 @@ Remember that Astro is a server-side templating language, so your component scri
// Anything inside the `---` code fence is your component script.
// This JavaScript code runs at build-time.
// See below to learn more about what you can do.
-console.log('This runs at build-time, is visible in the CLI output');
// Tip: TypeScript is also supported out-of-the-box!
const thisWorks: number = 42;
+console.log('This runs at build-time, is visible in the CLI output', thisWorks);
---
<div class="example-1">
<h1>Hello world!</h1>