First,define the primary-button component,like this:
@controller
class PrimaryButtonElement extends HTMLElement {
connectedCallback(){
const itemTemplate = () => {
return html`
<button>
???
</button>
`
}
render(itemTemplate(), this)
}
}
Then,use the component like this,
<primary-button>new issue</primary-button>
The question is how to render the component's content in the controller?
Thanks!