0

Why is this.refs deprecated in React class?

enter image description here

  • 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

0 Answers0