You want to take your "modal" game to the next level, maybe not pissing together broken non-graceful degrading accessibility violations would be a start. Much less one riddled with JavaScript doing things that are none of JavaScript's business.

But what can one expect from the mental midgetry that is React and all other "front end frameworks", slopping together stuff that looks like markup for scripting only functionality, scripting for things that don't need to be scripted, non-semantic markup, redundant/pointless classes, and worst of all telling users with accessibility needs to go **** themselves.

You want to know how NOT to use JavaScript to make websites, look no further than React and its kine.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store