0

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

1
  • Only the developer(s) of React could answer the last two questions. Commented Jul 3, 2015 at 8:22

2 Answers 2

1
  • There is no other workaround other than dangerouslySetInnerHTML
  • You should watch Issue #1657 as they will probably announce it there when it's ready
Sign up to request clarification or add additional context in comments.

Comments

0

It is now supported just use:

<svg>
  <image xlinkHref="//url.of.image" width={600} height={400} />
</svg>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.