Skip to content

SVG <path> tag unrecognized with React 16 #10955

Closed
@ash-vd

Description

@ash-vd

I have an element in which I have code similar to this:

<svg width="100%" height="100%" viewBox="0 0 80 80"> <path ref={(currentLevel) => { this.currentLevel = currentLevel; }} className={styles.svgBorderCurrent} d="M40,10C57.351,10,71,23.649,71,40.5S57.351,71,40.5,71 S10,57.351,10,40.5S23.649,10,40.5,10z" /> </svg>.

The svg and it's paths are rendered, but I get an error in the console:

The tag <path> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.

What is the right way to render this svg? I never got a message like this in React 15.x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions