useRef(): It is used to access the DOM element It is used to create mutable variable which will not re-render the component Syntax: const variableName=useRef(Optional initialValue); example: UseReference.jsx import React, { useEffect, useRef, use...

Markdown supported · ⌘↵ to post
No responses yet.