useRef Hook:
useRef is a React Hook.Access and manipulate DOM elements directly.
Store values without causing a component re-render.
Syntax:
import { useRef } from "react";
function App() {
const inputRef = useRef(null);
return ;
}
output:
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)