Invoker Commands: Wiring Buttons to Dialogs and Popovers Without JavaScript
Every time you wire up a modal, you end up writing the same three lines of JavaScript: grab the button, grab the dialog, attach a click listener that calls showModal(). Do it again for the close butto
grimicorn.hashnode.dev4 min read