Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c844580

Browse files
astro pod
1 parent 3d03d36 commit c844580

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

+3-1
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)