airbnb / airbnb/babel-plugin-inline-react-svg

Warning: React does not recognize the `maskType` prop on a DOM element.

Open
#111 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
474
Forks
90
PR merge metrics
No merged PRs in 30d

Description

When the lib transforms to SVG, it adds the maskType property and so I get the following error:

Warning: React does not recognize the `maskType` prop on a DOM element.

I need to change maskType to mask-type but I don't know how I can do it.

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by reproducing the SVG-to-React transformation described in the issue and trace where maskType is emitted. Done means the generated SVG no longer produces the reported React warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript, react
Domain
frontend, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.