Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reactjs svg SyntaxError: unknown: Namespace tags are not supported by default

1. convert svg to be used w/ JSX :
https://svg2jsx.com/

2. in the SVG file, try changing:

    sketch:type ==> sketchType
    xmlns:xlink ==> xmlnsXlink
    xlink:href  ==> xlinkHref
    foo:bar     ==> fooBar
    etc...

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reactjs #svg #Namespace #tags #supported #default
ADD COMMENT
Topic
Name
2+8 =