JSFiddle - React, Tailwind, and code Playground

HTML

<hello-world>
 Hello {planet}
</hello-world>

<!-- http(s): protocol required locally -->
<script nomodule src=//unpkg.com/snuggsi></script>
<script nomodule async defer>

// Element Definition -----------------------------

Element `hello-world`

// Class Description ------------------------------

(class extends HTMLElement {

  get planet ()
    // "automagic" token binding
    { return 'world 🌎' }

  static onclick ()
    // "automagic" event registration
    { alert (this) }
})

</script>