Mohan Mogi Posted on Jun 9 useRef Hook 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: Top comments (0) Subscribe Submit Preview Dismiss Code of Conduct • Report abuse
Top comments (0)