Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 486 Bytes

jsx-no-namespace.md

File metadata and controls

29 lines (19 loc) · 486 Bytes

Enforce that namespaces are not used in JSX (react/jsx-no-namespace)

Enforces the absence of a namespace in JSX components, 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 JSX.