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 (
); } function Resource(props: Record<'href' | 'title' | 'description', string>) { return ({props.description}
); } const app = document.getElementById('app'); if (app) { render(