jsx-eslint/eslint-plugin-react
Ver no GitHubwarn when using setState in constructor
Open
#2.371 aberto em 5 de ago. de 2019
acceptedhelp wantednew rule
Métricas do repositório
- Stars
- (8.630 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
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.