diff options
Diffstat (limited to 'examples/framework-preact/src/pages/index.astro')
-rw-r--r-- | examples/framework-preact/src/pages/index.astro | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/examples/framework-preact/src/pages/index.astro b/examples/framework-preact/src/pages/index.astro index b37295d7b..a6565f6c1 100644 --- a/examples/framework-preact/src/pages/index.astro +++ b/examples/framework-preact/src/pages/index.astro @@ -2,12 +2,8 @@ // Component Imports import Counter from '../components/Counter'; -import { signal } from '@preact/signals'; - // Full Astro Component Syntax: // https://docs.astro.build/core-concepts/astro-components/ - -const count = signal(0); --- <html lang="en"> @@ -29,12 +25,8 @@ const count = signal(0); </head> <body> <main> - <Counter count={count} client:visible> - <h1>Hello, Preact 1!</h1> - </Counter> - - <Counter count={count} client:visible> - <h1>Hello, Preact 2!</h1> + <Counter client:visible> + <h1>Hello, Preact!</h1> </Counter> </main> </body> |