connectedCallback() refs.button.addEventListener('click', handleClick)
const MyElement = customElement(() => {
const [count, setCount] = createSignal(0);
const increment = () => setCount(count() + 1);
return html`
<button onclick="${increment}">Increment</button>
<output>${count}</output>
`;
});
on... this
<my-element onclick="this.__customCallbackFns.get('d7121610-e89d-4629-ab00-d4e22644f16b')(event)">
As of version 2.0.0, Thunderous has deprecated the
customCallback()