I'm trying to use a custom web component in a .tsx file (React) in Astro. My code looks like this:
export const SomeComponent = ({
code,
state,
}: Props) => {
return (
<custom-web-component
code={code}
state={state}
></custom-web-component>
)
}
and I'm getting an error like this:
Property 'custom-web-component' does not exist on type 'JSX.IntrinsicElements'
How can I solve this issue? Thanks!