Open s-areeb opened 5 years ago
Options are the 3rd argument: https://github.com/matthewp/haunted#function-signatures
Pass HTMLElement
as the second argument.
As per README there are two signatures for component function
component(renderer, options): Element
and component(renderer, BaseElement, options): Element
Even when passing 2nd arg, i still get the same issue
component(Counter , HTMLElement, { useShadowDOM: false })
Updated codepen with above
Ok, I forgot about this. Will fix.
TypeError: Illegal invocation
on v4.5.3Uncaught TypeError: Class extends value #<Object> is not a constructor or null
on v4.5.1codepen
codepen full view