Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 224 Bytes

no-single-element-style-arrays.md

File metadata and controls

12 lines (7 loc) · 224 Bytes

No Single Element Style Arrays are allowed

These cause unnecessary re-renders as each time the array's identity changes.

Rule Details

The following pattern is not allowed:

<View style={[{height: 10}]} />