Open trusktr opened 6 years ago
For example, with vanilla Web Components, I can ship this:
class FooBar extends HTMLElement {...}
then tell end users to use it like this:
customElements.define('foo-bar', FooBar) // but they can use any name they want // ... use the element ...
How would I do this with X-Tags?
This is coming in v2 - there is a create and register call where you can separate the two. Create can output just a computed class, and they you can register it with whatever name you choose.
For example, with vanilla Web Components, I can ship this:
then tell end users to use it like this:
How would I do this with X-Tags?