developit / developit/vhtml

unable to use vhtml in vite

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
814
Forks
37
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.