Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 544 Bytes

File metadata and controls

33 lines (21 loc) · 544 Bytes

react/no-namespace

📝 Enforce that namespaces are not used in React elements.

Enforces the absence of a namespace in React elements, such as with svg:circle, as they are not supported in React.

Rule Details

The following patterns are considered warnings:

<ns:TestComponent />
<Ns:TestComponent />

The following patterns are not considered warnings:

<TestComponent />
<testComponent />

When Not To Use It

If you are not using React.