🔥 refactor: Remove counter.js

This commit is contained in:
marleyrae 2023-05-28 17:24:13 -07:00
parent cc3829d508
commit 17bff75476

View file

@ -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)
}