Reputation: 12304
I wish to use the svg <image>
tag with React, but it is not supported at the moment.
Is there any workaround other than inserting html dangerously?
Will it be supported in the near future?
What is the reason this particular svg tag is not supported?
Thanks
Upvotes: 0
Views: 679
Reputation: 6691
It is now supported just use:
<svg>
<image xlinkHref="//url.of.image" width={600} height={400} />
</svg>
Upvotes: 0
Reputation: 2854
dangerouslySetInnerHTML
Upvotes: 1