jsx-eslint/eslint-plugin-react
Auf GitHub ansehenwarn when using setState in constructor
Open
#2.371 geöffnet am 5. Aug. 2019
acceptedhelp wantednew rule
Repository-Metriken
- Stars
- (8.630 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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.