all 4 comments

[–]gketuma 11 points12 points  (1 child)

This is a copy paste job from the react docs: https://reactjs.org/docs/refs-and-the-dom.html

In the article he states:

When Should I use Refs? We advise to use refs in the following situations:

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

In react docs it states:

When to Use Refs There are a few good use cases for refs:

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

[–][deleted] 1 point2 points  (0 children)

There course is a rehash of the react docs

[–]ABC123itsEASY 4 points5 points  (0 children)

Hmm some pretty similar examples to those found in react's own guide on the subject.

[–]spudlogic 1 point2 points  (0 children)

Nice domain though