Reputation: 65
TypeScript ReactJS
Type '{ name: string; "data-id": string; "data-type": string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes, HTMLDivElement>'. Property 'name' does not exist on type 'DetailedHTMLProps<HTMLAttributes, HTMLDivElement>'
<div name="termly-embed" data-id="**************************" data-type="iframe"></div>
Upvotes: 4
Views: 4022
Reputation: 4410
Since name property does not exist, it is custom so you can use data-
attributes. Try to change it with data-name
<div data-name="termly-embed" data-id="**************************" data-type="iframe"></div>
Upvotes: 1