JSFiddle - React, Tailwind, and code Playground

by mgiuffrida

HTML

<script>Polymer = {dom: 'shadow'};</script>
<base href="http://polygit.org/polymer+:master/components/">
<link rel=import href="polymer/polymer.html">

<dom-module id="x-foo">
  <template>
    <style>
      :host {
        font-weight: bold;
      }
      :host.green {
        color: green;
      }
    </style>
    Hello, world
  </template>
</dom-module>

<x-foo class="green"></x-foo>

JavaScript

Polymer({
  is: 'x-foo',
});