You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -243,7 +244,7 @@ A callback function passed as `<Shout />`’s child will receive the all-caps `m
243
244
import Shout from "../components/Shout.astro";
244
245
---
245
246
<Shout message="slots!">
246
-
{(message) => <div>{message}</div>}
247
+
{(message: string) => <div>{message}</div>}
247
248
</Shout>
248
249
249
250
<!-- renders as <div>SLOTS!</div> -->
@@ -254,7 +255,7 @@ Callback functions can be passed to named slots inside a wrapping HTML element t
254
255
```astro
255
256
<Shout message="slots!">
256
257
<fragment slot="message">
257
-
{(message) => <div>{message}</div>}
258
+
{(message: string) => <div>{message}</div>}
258
259
</fragment>
259
260
</Shout>
260
261
```
@@ -265,23 +266,24 @@ Use a standard HTML element for the wrapping tag or any lowercase tag (e.g. `<fr
265
266
266
267
`Astro.self` allows Astro components to be recursively called. This behavior lets you render an Astro component from within itself by using `<Astro.self>` in the component template. This can help iterate over large data stores and nested data structures.
0 commit comments