• +91 9723535972
  • info@interviewmaterial.com

ReactJS Interview Questions and Answers

Related Subjects

Question - Why do React Hooks make use of refs?

Answer -

Earlier, refs were only limited to class components but now it can also be accessible in function components through the useRef Hook in React.

The refs are used for:

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

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners