React JS - useRef Hook

  • useRef Hook is used in Functional Component.
  • useRef is used to manipulate DOM directly.
  • We should avoid using useRef hook because it may lack performance.























Output :



Comments