--- title: Riot.js category: JavaScript libraries --- ### About {: .-intro} Riot is a UI library for JavaScript. - ### Tags ```js /* tag-name.tag */
hello {name}
this.name = opts.name
``` ```html ``` ### Expressions ``` {value} {value || 'its a js expression'} /* null values ignore the tag */

``` ### Loops ```

  • {title}
  • ``` ### Conditional ```
    /* show using display: '' */
    /* hide using display: none */ ``` ### Events ```js