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.
How about `ref-style, that separately controls string refs, callback refs, createRefs, and forwardRefs?
That way it could replace no-string-refs eventually, and is extensible to future styles.
Most helpful comment
How about `ref-style, that separately controls string refs, callback refs, createRefs, and forwardRefs?
That way it could replace no-string-refs eventually, and is extensible to future styles.