Skip to content

svg props being passed directly #36

@Deep-Codes

Description

@Deep-Codes

Reproduction: https://codesandbox.io/s/svgmt-example-map-forked-9p5mn

Using the map codesandbox example

if i want to change the stroke width normally i would pass the stroke-width='10px' but in react i have to do like strokeWidth='10px'

and it gets directly passed to the SVG Path

Screenshot 2021-04-14 at 8 55 55 AM

or am I missing out on anything?

Fix can be to strokeWidth => stroke-width

Cool Library Solves a lot of problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions