Introduction
Custom tags need to be transformed to javascript before the browser can execute them.The riot compiler is designed to transform riot tags into javascript modules.A compiled riot tag will look like this:
export default {
css: `my-tag { color: red; }`, // component css string
template: function() {}, // internal riot template factory function
exports: {}, // component events and lifecycle methods
name: 'my-tag' // component id
}
Each tag file must contain only one tag definition.