Why is this.refs deprecated in React class?
Asked
Active
Viewed 1,009 times
0
-
https://stackoverflow.com/questions/43873511/deprecation-warning-using-this-refs – mnsr Feb 15 '20 at 00:19
-
Because modern React does not use `this.refs`, as per the [official documentation](https://reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs) – Mike 'Pomax' Kamermans Feb 15 '20 at 00:19
-
Does this answer your question? [Deprecation warning using this.refs](https://stackoverflow.com/questions/43873511/deprecation-warning-using-this-refs) – EliteRaceElephant Feb 15 '20 at 02:33