currently calling "new" on an export class is tricky implementation is rudimentary now, but could offer more flexability?
could convert this anon onClick prop to string?
import { Fragment } from "preact";
import { HTMX, HTMXComponents } from "../mod.tsx";
const { component, serve, routes, clientImport } = new HTMXComponents('@reggi/client-code')
const multi = await clientImport('./client_code/multi.ts')
export const OnClick = component('/client-code-on-click', () => {
return (
<Fragment>
<HTMX.div onClick={() => {
const x = new multi.Dog()
console.log(x.name)
}}>Do something else</HTMX.div>
</Fragment>
)
})
if (!Deno.env.get('NO_SERVE')) {
await serve()
}
export { routes }
currently calling "new" on an export class is tricky implementation is rudimentary now, but could offer more flexability?
could convert this anon onClick prop to string?