JSFiddle - React, Tailwind, and code Playground
by kzqooq
HTML
<script src="//cdn.jsdelivr.net/g/riot@2.0(riot.min.js+compiler.min.js)"></script>
<!-- mount point -->
<my-tag></my-tag>
<!-- inlined tag definition -->
<script type="riot/tag">
<my-tag>
<h3>Tag layout</h3>
</my-tag>
</script>
<!-- mount normally -->
<script>
riot.compile(function() {
// here tags are compiled and riot.mount works synchronously
var tags = riot.mount('*')
var mytag = tags[0]
alert(mytag.root.nodeName)
console.log(tags)
})
</script>