init: copied from another empty project

want to test out integration with js libraries
This commit is contained in:
efim
2023-06-07 15:07:44 +00:00
commit 09fde24c0a
18 changed files with 1803 additions and 0 deletions

9
counter.js Normal file
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)
}