You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React also supports using a string (instead of a callback) as a ref prop on any component, although this approach is mostly legacy at this point.
There are also React issues that indicate string refs will eventually be deprecated. We should consider moving to callback refs when we're able to do so.
The text was updated successfully, but these errors were encountered:
This issue is beeing addressed in the next branch. To have more context on why it's bad, you can have a look at https://news.ycombinator.com/edit?id=12093234
We should make sure that the corresponding eslint rule is enforced.
React docs says the following about string refs:
There are also React issues that indicate string refs will eventually be deprecated. We should consider moving to callback refs when we're able to do so.
The text was updated successfully, but these errors were encountered: