When do you need to use refs?

There are few use cases to go for refs,

  1. Managing focus, text selection, or media playback.
  2. Triggering imperative animations.
  3. Integrating with third-party DOM libraries.

Made in India with ❤️ by Rajesh Kumar Yadav

Twitter