Skip to content

Commit 5bc0ef1

Browse files
committed
readme svelte block formatting
1 parent 05ab09b commit 5bc0ef1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ Currently Sveltris only supports React, but might support others soon.
3131
const counter = use(() => useCounter());
3232
</script>
3333

34-
{#if $counter} {@const { count, increment } = $counter}
35-
<button on:click="{increment}">{count}</button>
34+
{#if $counter}
35+
{@const { count, increment } = $counter}
36+
<button on:click="{increment}">{count}</button>
3637
{/if}
3738
```
3839

0 commit comments

Comments
 (0)