Skip to content

react/no-unknown-property Restriction ​

🚧 An auto-fix is still under development.

What it does ​

Disallow usage of unknown DOM property.

Why is this bad? ​

You can use unknown property name that has no effect.

Example ​

jsx
// Unknown properties
const Hello = <div class="hello">Hello World</div>;
const Alphabet = <div abc="something">Alphabet</div>;

// Invalid aria-* attribute
const IconButton = <div aria-foo="bar" />;

References ​

Released under the MIT License.