developit / developit/vhtml

unable to use vhtml in vite

Aperta
#42 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
814
Fork
37
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, vite
Ambito
build-system, frontend
Tipo di issue
Documentazione
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.