import { render } from 'preact'; import { useState } from 'preact/hooks'; import preactLogo from './assets/preact.svg'; import './style.css'; export function App() { const [value, setValue] = useState(0); return (
Preact logo

Get Started building Vite-powered Preact Apps

Counter: {value}
); } function Resource(props: Record<'href' | 'title' | 'description', string>) { return (

{props.title}

{props.description}

); } const app = document.getElementById('app'); if (app) { render(, app); } else { console.error('Cannot find app container'); }