developit / developit/vhtml

unable to use vhtml in vite

Offen
#42 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
814
Forks
37
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I tried to configure vhtml in vite's vanilla javascript template but I'm unable to implement it. Please guide me on how to configure it.

```js
main.js
------

/** @jsx vhtml */
import { Counter } from "./src/counter";

document.body.innerHTML = (



);
```

```js
/** @jsx vhtml */

export function Counter() {
let count = 0;
return (

Click button


count++}>Click me

);
}
```

```html





Vite App




```

![image](https://github.com/developit/vhtml/assets/68345524/110486f7-7fc5-4eb3-866e-bfdefbe9a929)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start with the Vite vanilla JavaScript entry shown in main.js and the src/counter example, then compare it with vhtml's configuration requirements. Verify the setup using the provided HTML entry and confirm that the JSX example builds and renders the Counter component.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, vite
Bereich
build-system, frontend
Issue-Typ
Dokumentation
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.