JSFiddle - React, Tailwind, and code Playground
by gianlucaguarini
HTML
<script src="https://cdn.jsdelivr.net/g/[email protected](riot.min.js+compiler.min.js)"></script>
<something></something>
<script type="riot/tag">
<something>
<div each={ foo in bar }>
<something-else data={ foo }></something-else>
</div>
this.bar = ['mung', 'face']
</something>
<something-else>
<p>{ opts.data }</p>
this.on('mount', function () {
console.log(opts.data);
})
</something-else>
</script>
JavaScript
riot.mount('something')