this repo has no description
1import { useState } from 'preact/hooks'
2import preactLogo from './assets/preact.svg'
3import viteLogo from '/vite.svg'
4import './app.css'
5
6export function App() {
7 const [count, setCount] = useState(0)
8
9 return (
10 <>
11 <div>
12 <a href="https://vite.dev" target="_blank">
13 <img src={viteLogo} class="logo" alt="Vite logo" />
14 </a>
15 <a href="https://preactjs.com" target="_blank">
16 <img src={preactLogo} class="logo preact" alt="Preact logo" />
17 </a>
18 </div>
19 <h1>Vite + Preact</h1>
20 <div class="card">
21 <button onClick={() => setCount((count) => count + 1)}>
22 count is {count}
23 </button>
24 <p>
25 Edit <code>src/app.tsx</code> and save to test HMR
26 </p>
27 </div>
28 <p>
29 Check out{' '}
30 <a
31 href="https://preactjs.com/guide/v10/getting-started#create-a-vite-powered-preact-app"
32 target="_blank"
33 >
34 create-preact
35 </a>
36 , the official Preact + Vite starter
37 </p>
38 <p class="read-the-docs">
39 Click on the Vite and Preact logos to learn more
40 </p>
41 </>
42 )
43}