Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 495 Bytes

no-namespace.md

File metadata and controls

29 lines (19 loc) · 495 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

If you are not using React.