You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
865 B
33 lines
865 B
import { component$, useSignal } from '@builder.io/qwik'
|
|
|
|
import qwikLogo from './assets/qwik.svg'
|
|
import viteLogo from '/vite.svg'
|
|
import './app.css'
|
|
|
|
export const App = component$(() => {
|
|
const count = useSignal(0)
|
|
|
|
return (
|
|
<>
|
|
<div>
|
|
<a href="https://vite.dev" target="_blank">
|
|
<img src={viteLogo} class="logo" alt="Vite logo" />
|
|
</a>
|
|
<a href="https://qwik.dev" target="_blank">
|
|
<img src={qwikLogo} class="logo qwik" alt="Qwik logo" />
|
|
</a>
|
|
</div>
|
|
<h1>Vite + Qwik</h1>
|
|
<div class="card">
|
|
<button onClick$={() => count.value++}>count is {count.value}</button>
|
|
<p>
|
|
Edit <code>src/app.jsx</code> and save to test HMR
|
|
</p>
|
|
</div>
|
|
<p class="read-the-docs">
|
|
Click on the Vite and Qwik logos to learn more
|
|
</p>
|
|
</>
|
|
)
|
|
})
|