diff options
author | 2022-11-08 18:39:22 +0000 | |
---|---|---|
committer | 2022-11-08 18:39:22 +0000 | |
commit | dcdeca56acb6c03d4868ece51ef4611e7598e270 (patch) | |
tree | f8731cc4f82f335c00a4a9a7f4b573d277b84a3e /examples/hackernews/src/components/For.astro | |
parent | 0dcdc6fb1e6160c8a225a65c4810f565e2b673b5 (diff) | |
download | astro-dcdeca56acb6c03d4868ece51ef4611e7598e270.tar.gz astro-dcdeca56acb6c03d4868ece51ef4611e7598e270.tar.zst astro-dcdeca56acb6c03d4868ece51ef4611e7598e270.zip |
[ci] format
Diffstat (limited to 'examples/hackernews/src/components/For.astro')
-rw-r--r-- | examples/hackernews/src/components/For.astro | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/hackernews/src/components/For.astro b/examples/hackernews/src/components/For.astro index b784f8f8a..885c22a65 100644 --- a/examples/hackernews/src/components/For.astro +++ b/examples/hackernews/src/components/For.astro @@ -8,13 +8,15 @@ export interface Props<T> { const { each } = Astro.props; --- -{(async function* () { - for await (const value of each) { - let html = await Astro.slots.render('default', [value]); - yield <Fragment set:html={html} />; - yield '\n'; - } -})()} +{ + (async function* () { + for await (const value of each) { + let html = await Astro.slots.render('default', [value]); + yield <Fragment set:html={html} />; + yield '\n'; + } + })() +} <Show when={!each.length}> <slot name="fallback" /> |