test build

This commit is contained in:
Orion Reed 2023-08-10 21:35:12 +01:00
parent 5c2b29e51e
commit d0d5206da3
1 changed files with 28 additions and 24 deletions

View File

@ -1,28 +1,32 @@
import { useState } from 'preact/hooks'; import { useState } from 'preact/hooks'
import preactLogo from '../assets/preact.svg'; import preactLogo from '../assets/preact.svg'
import viteLogo from '/vite.svg'; import viteLogo from '/vite.svg'
export function Home() { export function Home() {
const [count, setCount] = useState(0); const [count, setCount] = useState(0)
return ( return (
<> <>
<div> <div>
<a href="https://vitejs.dev" target="_blank"> <a href="https://vitejs.dev" target="_blank" rel="noreferrer">
<img src={viteLogo} class="logo" alt="Vite logo" /> <img src={viteLogo} class="logo" alt="Vite logo" />
</a> </a>
<a href="https://preactjs.com" target="_blank"> <a href="https://preactjs.com" target="_blank" rel="noreferrer">
<img src={preactLogo} class="logo preact" alt="Preact logo" /> <img src={preactLogo} class="logo preact" alt="Preact logo" />
</a> </a>
</div> </div>
<h1>Vite + Preact</h1> <h1>Vite + Preact + Foo</h1>
<div class="card"> <div class="card">
<button onClick={() => setCount((count) => count + 1)}>count is {count}</button> <button onClick={() => setCount((count) => count + 1)}>
<p> count is {count}
Edit <code>src/app.tsx</code> and save to test HMR </button>
</p> <p>
</div> Edit <code>src/app.tsx</code> and save to test HMR
<p class="read-the-docs">Click on the Vite and Preact logos to learn more</p> </p>
</> </div>
); <p class="read-the-docs">
Click on the Vite and Preact logos to learn more
</p>
</>
)
} }