What is a ref? There's a clue in the name: it references an element. If you have a button in HTML with a class of myElement, then you can refer to it in JavaScript like this: const myElement = document.querySelector('.myElement'); myElement.addEventL...
This week I learnt...
Front End Developer. I like problem solving and making things pretty. I also like red.
Markdown supported · ⌘↵ to post
No responses yet.