Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 367 Bytes

jsx-for-require-of.md

File metadata and controls

26 lines (17 loc) · 367 Bytes

For tag must contain of attribute (jsx-for-require-of)

Warn if For tag is missing of attribute.

Rule Details

The following patterns are considered warnings:

<For>
    <div/>
</For>

The following patterns are not warnings:

<For of={foo}>
    <div/>
</For>

When Not To Use It

If you are not using JSX, you can disable this rule