Comment

Comment by pc86

I want to agree with this based on the title, but why would you do something like this:

    <div class="bg-green" onlick="this.classList.add('green')">Click me</div>
if you're already using React? Yes the React code is a lot more verbose and has a bunch of "cruft" for lack of a better word. But you're already using it for the rest of your site, so you should (IMO) continue using it rather than mixing and matching approaches.
parent pc86 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton