jsx-eslint/eslint-plugin-react

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

Open

#1,633 建立於 2018年1月8日

在 GitHub 查看
 (17 留言) (10 反應) (0 負責人)JavaScript (2,797 fork)batch import
acceptedhelp wantednew rule

倉庫指標

Star
 (8,630 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南