When I add itemscope itemtype="http://schema.org/Product"
to h1
, I get this error:
Type '{ children: string; itemscope: true; itemtype: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>'. Property 'itemscope' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>'
<h1 itemscope itemtype="http://schema.org/Product">Amasia</h1>
How to use Microdata in React+Typescript?