Update syntax.md

This commit is contained in:
Fred K. Schott 2021-06-09 14:15:46 -07:00 committed by GitHub
parent 5fbc1cb641
commit 047b0fcc6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,7 @@ We love JSX! In fact, `.astro` files borrow the highly-expressive templating syn
<!-- This is an Astro component with expressions! -->
<main>
<h1>Hello {name}!</h1>
<h2 data-hint={`Use JS template strings when you need to mix-in ${"variables"}.`}>So good!</h2>
<ul>
{items.map((item) => (
<li>{item}</li>