---
title: "Discussion on \"Using `useRef()` to multiple elements in React JS\" | Hashnode"
description: "Discussion on \"Using `useRef()` to multiple elements in React JS\". Learn how to use a single `useRef()` hook in React to reference multiple elements efficiently"
url: "https://hashnode.com/posts/using-useref-to-multiple-elements-in-react-js/630cb63b43d7308e3e326dc5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using \`useRef()\` to multiple elements in React JS](https://adics.hashnode.dev/using-useref-to-multiple-elements-in-react-js?utm_source=hashnode&utm_medium=feed)

Learn how to use a single \`useRef()\` hook in React to reference multiple elements efficiently

Aug 29, 2022 · 2 min read · adics.hashnode.dev  
Updated Feb 6, 2025  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#hooks](https://hashnode.com/tag/hooks)
-   [#vite](https://hashnode.com/tag/vite)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)

## Written by

[Adi Cahya Saputra](https://hashnode.com/@adics)

@adics · Jakarta, Indonesia

  
[View profile](https://hashnode.com/@adics)

Fullstack Developer

Fullstack Developer | UI/UX Designer | Web &amp; Mobile | NextJS, Laravel, ASP .NET Core, Kotlin, Flutter, React Native, Figma

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
