jsx-eslint/eslint-plugin-react
Ver no GitHub[feat-request] prefer-create-ref
Open
#2.237 aberto em 12 de abr. de 2019
help wantednew rule
Métricas do repositório
- Stars
- (8.630 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
This is a feature request. In React it is possible to create references to elements in 3 different ways, including one deprecated (string refs, for this there is the no-string-refs rule). To improve consistency of what approach to be used for refs it would be nice to have a prefer-create-ref rule, maybe other naming also in favor of callback refs.