S
S
Svyatoslav Khusamov2019-10-04 22:25:20
React
Svyatoslav Khusamov, 2019-10-04 22:25:20

How to set a namespace in JSX (eg xmlns:xlink)?

<div className="App">
      <svg
        viewBox="0 0 200 200"
        preserveAspectRatio="xMidYMid meet"
        xmlns="http://www.w3.org/2000/svg"
        xmlns:xlink="http://www.w3.org/1999/xlink"
      >



      </svg>
    </div>

Here the error is where xmlns:xlink starts
How do I describe in JSX like SVG or something like that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-10-04
@khusamov

xmlnsXlink="http://www.w3.org/1999/xlink"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question