Here's a snippet from polymer docs
import { LitElement, html } from 'lit-element'
class Component extends LitElement {
render () {
return html`<p>A paragraph</p>`
}
}
customElements.define('app-layout', Component)
I'm confused with this line return html`<p>A paragraph</p>`
typeof html
gives me function
, so it must be some sort of function infocation. html('<p>A paragraph</p>')
throws an error Uncaught (in promise) TypeError: t.strings.join is not a function