0 votes
in ReactJS by
When do you need to use refs in ReactJS, explain with eample?

1 Answer

0 votes
by

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.
...