M
M
miliko mikoyan2019-06-08 16:51:17
typescript
miliko mikoyan, 2019-06-08 16:51:17

How to use schema.org in React+Typescript?

When I insert itemscope itemtype=" schema.org/Product " h1. I am getting this error. Type '{children:string; itemscope: true element type: string; } ' cannot be assigned to type 'DetailHTMLProps, HTMLHeadingElement>'. Itemscope property does not exist for type 'DetailHTMLProps, HTMLHeadingElement>'

<h1 itemscope itemtype="http://schema.org/Product">Amasia</h1>

How to use schema.org in React+Typescript?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Sviridov, 2019-06-08
@miliko0022

itemScope
itemType
Well, you get the idea

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question