How to provide dynamic styling to riotjs tag
<p>I want to create a riotjs tag to whom some style or css class can be added directly in HTML page. And I also can set some style attributes dynamically from tag script;</p>

<p>For Example;</p>

<pre><code>&lt;my-tag class="some class" attr1="" attr2="" /&gt;

&lt;my-tag&gt;
  &lt;script&gt;
    if(opts.attr1) //set some style to my-tag
  &lt;/script&gt;
&lt;/my-tag&gt;
</code></pre>

<p>I can achieve it by creating a HTML tag string with dynamic properties and insert as HTML to root. But I don't want to add additional child tag just for styling.</p>