Thanks a lot for taking the time to read my article and respond to it! It’s much appreciated :)
Sorry for getting back to you this late. I thought I had replied to you already…
Hmm. I’m not sure how it would be done in front-end code. But I think Jakob Gaard Andersen would be able to answer this.
You can perhaps get some inspiration from his article here:
He showcases some conditional rendering.