diff options
author | 2022-06-29 20:56:51 +0000 | |
---|---|---|
committer | 2022-06-29 20:56:51 +0000 | |
commit | 51d5dc478993a994268391a5f13eec32ae29f665 (patch) | |
tree | e572d7286d277b959431a82d236690f164d6634e /examples/framework-lit/src/components/calc-add.js | |
parent | e667477103cdd8f420d7dc86d55d5bebe86ef4e2 (diff) | |
download | astro-51d5dc478993a994268391a5f13eec32ae29f665.tar.gz astro-51d5dc478993a994268391a5f13eec32ae29f665.tar.zst astro-51d5dc478993a994268391a5f13eec32ae29f665.zip |
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
Diffstat (limited to 'examples/framework-lit/src/components/calc-add.js')
-rw-r--r-- | examples/framework-lit/src/components/calc-add.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/framework-lit/src/components/calc-add.js b/examples/framework-lit/src/components/calc-add.js new file mode 100644 index 000000000..b0b3978bf --- /dev/null +++ b/examples/framework-lit/src/components/calc-add.js @@ -0,0 +1,17 @@ +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); |