import { Component, createElement, render } from "https://esm.sh/alpinejs@3.x.x" import { ref } from "https://esm.sh/alpinejs@3.x.x/dist/alpinejs.global.js" import { init } from "https://esm.sh/daisyui@3.1.6/dist/full.css" import { html } from "https://esm.sh/lit-html" const pdf = ref() const ctx = ref() const app = { setup() { const { state, effect, watch } = this state = { count: 0 } effect({ message: "Started" }) return { count: state.count } }, html() { const { count } = this.effect() return html`
` }, async mounted() { this.pdf = this.el.querySelector("#pdf") this.ctx = this.pdf.getContext("2d") } } init(app)