🔥 refactor: Remove counter.js
This commit is contained in:
parent
cc3829d508
commit
17bff75476
1 changed files with 0 additions and 9 deletions
|
@ -1,9 +0,0 @@
|
|||
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)
|
||||
}
|
Loading…
Reference in a new issue