jsx-eslint/eslint-plugin-react

New rule to avoid prop value with array or object creation in render

Open

#1.633 geöffnet am 8. Jan. 2018

Auf GitHub ansehen
 (17 Kommentare) (10 Reaktionen) (0 zugewiesene Personen)JavaScript (2.797 Forks)batch import
acceptedhelp wantednew rule

Repository-Metriken

Stars
 (8.630 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

There is a rule for prop value with function creation (bind, function(...), or arrow function): react/jsx-no-bind But I can't find a rule for array ([]) or object ({}) creation.

It would be useful since it would help to avoid useless renders of pure components.

Contributor Guide