Comment

Comment by 6510

For this specifically I would have the "you have upvotes" banner in the dom already with a class display:none.

I consider it a huge advantage to have the code for both the counter and the banner in the same place. thisCounter++; thisBanner.className = "shown";

parent 6510 10 days ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton