astro/examples/framework-lit/src/components/calc-add.js
Tony Sullivan 51d5dc4789
Updates an error handler to expect updated @astrojs/lit behavior (#3766)
* fix: don't throw an error when the lit renderer doesn't provide a clientEntrypoint

* updating the framework-lit example to match new behavior

* fix: updating the playground example to latest lit syntax
2022-06-29 20:56:51 +00:00

17 lines
275 B
JavaScript

import { LitElement, html } from 'lit';
export class CalcAdd extends LitElement {
static get properties() {
return {
num: {
type: Number,
},
};
}
render() {
return html` <div>Number: ${this.num}</div> `;
}
}
customElements.define('calc-add', CalcAdd);