JSFiddle - React, Tailwind, and code Playground

by Tomek

HTML

<!-- Load Web Components Polyfill if needed-->
<body>
  <template id="my-partial">
      <h3>My partial</h3>
      Quite inline and not so external but, ate least easy to use and to be stamped multiple times
  </template>
</body>
<script>
  var partialTemplate = document.getElementById('my-partial');
  var partialInstance = document.importNode(partialTemplate.content, true);
  document.body.appendChild(partialInstance);
</script>