Another stunning example of "JS for nothing", and just how mind-numbingly dumbass React and its kin and kine are.
90%+ of that JS could be pitched in the trash if once simple leverages :target in the CSS. Just like most of the broken, inaccessible idiocy people sleaze together with React, Vue, Angular, etc because they don't know enough HTML or CSS to even be using JS yet.
JS for nothing and your scripts for free. That ain't workin', that's not how you do it. Lemme tell ya, these guys ARE dumb.
Of course that the example also uses bootcrap, the MONUMENT to developer ignorance, incompetence, and ineptitude? Well that's just icing on the cake.