Typescript: Property 'href' does not exist on SVGUseElement

Created on 28 Mar 2017  路  2Comments  路  Source: microsoft/TypeScript


TypeScript Version: 2.2.2

Code
In React:

Property 'href' does not exist on type 'SVGProps<SVGUseElement>'.

Expected behavior:
The MDN SVGUseElement does not include the href property but I believe it is required to actually 'use' it. If you look here xlink:href was used in the example. However, that has now been deprecated in SVG 2 to drop the xlink namespace, see here.

Actual behavior:
Allow href property

External

Most helpful comment

All 2 comments

Where is SVGProps defined?

Was this page helpful?
0 / 5 - 0 ratings