Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 416 Bytes

jsx-for-require-body.md

File metadata and controls

28 lines (18 loc) · 416 Bytes

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

Warn if For tag is missing body attribute.

Rule Details

The following patterns are considered warnings:

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

The following patterns are not warnings:

<For body={renderItem} />
<For body={() => <div/>} />

When Not To Use It

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