aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src/counter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-vanilla/src/counter.ts')
-rw-r--r--frontend-vanilla/src/counter.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/frontend-vanilla/src/counter.ts b/frontend-vanilla/src/counter.ts
deleted file mode 100644
index 09e5afd..0000000
--- a/frontend-vanilla/src/counter.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export function setupCounter(element: HTMLButtonElement) {
- let counter = 0
- const setCounter = (count: number) => {
- counter = count
- element.innerHTML = `count is ${counter}`
- }
- element.addEventListener('click', () => setCounter(counter + 1))
- setCounter(0)
-}