News for hackers. Stuff that matters.
Re:Implementing single-file web components by potta_coffee on Monday March 23, 2020 @12:18PM (#22665451)
I've encountered this issue a lot. Really, a button is a very fine-grained bit of functionality to write a component for, in my opinion. A component is just the wrong level of abstraction for a button. For me, it's worked to make a component when I have a grouping of elements that I will re-use together. For instance, I wouldn't make a component for a form field, but I would make a component for an entire form, if I would use that form again.

There are no comments on this comment yet.