Skip to content

Commit c844580

Browse files
author
Alex Patterson
committed
astro pod
1 parent 3d03d36 commit c844580

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • apps/codingcatdev/src/routes/(content-single)/(non-course)/podcast/3-7-Astro-2.0-with-Matthew-Phillips

‎apps/codingcatdev/src/routes/(content-single)/(non-course)/podcast/3-7-Astro-2.0-with-Matthew-Phillips/+page.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ One powerful concept in Astro is **islands**. This allows you to mix and match A
101101

102102
To use a React, Svelte, etc component as an island, import it and add `client:` before it:
103103

104+
`Page.astro`
105+
104106
```jsx
105-
---// Page.astro---//...<client:Counter />//...
107+
<client:Counter />
106108
```
107109

108110
This tells Astro to hydrate the component on the client-side. Different directives control when and how it loads:

0 commit comments

Comments
 (0)