Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 541 Bytes

no-namespace.md

File metadata and controls

31 lines (20 loc) · 541 Bytes

Enforce that namespaces are not used in React elements (react/no-namespace)

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.