Who the *** said any of what I wrote would/should be buttons, onclick, or even be used for SPA? Someone tries to take what should be static links and turns them into scripttardery gets what's coming to them! ESPECIALLY when what's in even their original has NO business EVER being an SPA.
OR did you not bother reading and comprehending my article?
NOT that one should EVER write "onclick' in their markup.. and one of the reasons JSX is garbage riddled with bad practices! There's a reason react compiles the onclick F***wittery out.
AND have you ever considered once JavaScript off/blocked graceful degradation? Or the proper progressive enhancement that? Where scripting off you let the href do what an href does, but scripting on you layer in enhancement?
But seriously, someone dipshits in a scripting only behavior leaving what has NO business being scripting only, that's not the example's fault. That's some "JavaScript Only" SPA F***wit doing SPA F***wittery.