←back to thread

Just use a button

(gomakethings.com)
285 points moebrowne | 2 comments | | HN request time: 0.491s | source
Show context
donatj ◴[] No.45775305[source]
I would love to see this expanded into "Just use the HTML element that was built for that explicit purpose". I feel like your average SPA developer doesn't understand what even a quarter of the HTML elements are meant for and just reinvent the wheel every time.
replies(4): >>45776392 #>>45776404 #>>45776974 #>>45777884 #
1. culi ◴[] No.45776392[source]
Yes it's called "just use the platform" and it's become a common refrain in the front-end world at least since HTML5 came out around 2014. Unfortunately it hasn't caught on in all parts of web dev but it's definitely seen as the "correct" way to do things
replies(1): >>45776846 #
2. serial_dev ◴[] No.45776846[source]
I heard it almost a decade ago in Polymer and Web components circles https://www.polymer-project.org/blog/2016-05-26-IO-2016-Reca...

It’s strange to look back and see that most spa projects still just bundle it all up into a gigantic js file…