diff options
author | 2022-08-26 15:16:17 +0100 | |
---|---|---|
committer | 2022-08-26 10:16:17 -0400 | |
commit | 5fbb359afb807311ad8bb82d83912d8d6d75da10 (patch) | |
tree | c4fd6cf836e095d5214bdd26869729cfaf123fc4 /examples/framework-alpine/src | |
parent | b3db2c3c4b182fc7605dcb4f3fcd97f6f9688c14 (diff) | |
download | astro-5fbb359afb807311ad8bb82d83912d8d6d75da10.tar.gz astro-5fbb359afb807311ad8bb82d83912d8d6d75da10.tar.zst astro-5fbb359afb807311ad8bb82d83912d8d6d75da10.zip |
Remove "as Props" from the astro examples (#4494)
Diffstat (limited to 'examples/framework-alpine/src')
-rw-r--r-- | examples/framework-alpine/src/components/Counter.astro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/framework-alpine/src/components/Counter.astro b/examples/framework-alpine/src/components/Counter.astro index 0aebebb98..cb5bbcb17 100644 --- a/examples/framework-alpine/src/components/Counter.astro +++ b/examples/framework-alpine/src/components/Counter.astro @@ -6,7 +6,7 @@ export interface Props { initialCount?: number; } -const { initialCount = 0 } = Astro.props as Props; +const { initialCount = 0 } = Astro.props; --- <div class="counter" x-data={`{ count: ${initialCount} }`}> |