jsx-eslint/eslint-plugin-react

warn when using setState in constructor

Open

#2,371 opened on 2019年8月5日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)JavaScript (8,630 stars) (2,797 forks)batch import
acceptedhelp wantednew rule

説明

Obviously it could have been used by functions called from the constructor, but using setState in constructor is always an issue in react and causes a warning in debug mode.

コントリビューターガイド