2 ms·
With just vanilla JS, it's actually shorter, so yes. It has very limited use <button onclick="this.classList.toggle('big-text')"> Toggle the "big-text" c
by czechdeveloper 5y ago
With just vanilla JS, it's actually shorter, so yes. It has very limited use
<button onclick="this.classList.toggle('big-text')">
Toggle the "big-text" class on me on click
</button>