feat: added Vite examples

This PR includes Vite examples, in particular:

Vite: Vanilla Javascript
Vite: Vanilla Tyescript

Also updated the general readme to reflect the addition.
This commit is contained in:
h+
2024-07-28 20:54:57 +02:00
parent b168c34d56
commit 7e9d9d5a95
22 changed files with 886 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
export function setupCounter(element) {
let counter = 0
const setCounter = (count) => {
counter = count
element.innerHTML = `count is ${counter}`
}
element.addEventListener('click', () => setCounter(counter + 1))
setCounter(0)
}