Why Nostr? What is Njump?
2024-08-05 09:17:31

Lea Rosema on Nostr: Unpopular opinion: I don't see any value in having a button web component, no matter ...

Unpopular opinion: I don't see any value in having a button web component, no matter whether with a framework or with custom elements.

<button> already has all functionality built-in a button would require. The visual appearances, including button variants can be handled via CSS.

A button component may make it look more "architectured" (yay, you can omit the class attribute and brand it like MyCompanyButton), but it requires JavaScript to make it work. 🤷‍♀️
Author Public Key
npub1j2nu349xecdpms4hc5d678u84597cr3utk9px24q3l4q2qf9stysddx23v