---
title: "Riya Agarwal (@RiyaAgarwal) | Hashnode"
description: "Exploring the world of softwares. Read the latest articles by Riya Agarwal on Hashnode."
url: "https://hashnode.com/@RiyaAgarwal"
---

@RiyaAgarwal

# Riya Agarwal

@RiyaAgarwal · India · Joined August 2022

Exploring the world of softwares

### [What is the useRef Hook of React](https://learnwithriya.hashnode.dev/what-is-the-useref-hook-of-react?utm_source=hashnode&utm_medium=feed)

The useRef hook is used to persist values across component re-renders. It is used for DOM manipulation. useRef is the midway between variables and state values. Unlike variables, useRef is persistent across re-renders. Syntax:- const myRef = useRef(i...

1 min read · [learnwithriya.hashnode.dev](https://learnwithriya.hashnode.dev/what-is-the-useref-hook-of-react?utm_source=hashnode&utm_medium=feed)

[Apr 21, 2025](https://hashnode.com/posts/what-is-the-useref-hook-of-react/68060eb4066bc716681d8b06)

### [How the useCallback hook works](https://learnwithriya.hashnode.dev/usecallback-hook-when-why-how?utm_source=hashnode&utm_medium=feed)

useCallback hook is used for performance optimization and to cache something. When do we use useCallback? It is used to freeze a function reference. See, whenever a component renders, all the functions of the component are created.Therefore, when a c...

2 min read · [learnwithriya.hashnode.dev](https://learnwithriya.hashnode.dev/usecallback-hook-when-why-how?utm_source=hashnode&utm_medium=feed)

[Apr 21, 2025](https://hashnode.com/posts/usecallback-hook-when-why-how/6805ed30fea51624fcde52fd)

### [The what and how of useMemo hook](https://learnwithriya.hashnode.dev/the-what-and-how-of-usememo-hook?utm_source=hashnode&utm_medium=feed)

For a long time, useMemo had been a mystery to me. Now that I understood it, I thought of documenting everything the way I understand it so that other fellow developers may also benefit. What is useMemo used for? useMemo is used to avoid running a re...

2 min read · [learnwithriya.hashnode.dev](https://learnwithriya.hashnode.dev/the-what-and-how-of-usememo-hook?utm_source=hashnode&utm_medium=feed)

[Apr 21, 2025](https://hashnode.com/posts/the-what-and-how-of-usememo-hook/6805e9cbb6603c19059db03c)

### [JavaScript - An Overview](https://learnwithriya.hashnode.dev/javascript-an-overview?utm_source=hashnode&utm_medium=feed)

What is JavaScript? JavaScript gives life to a website. It is because of JavaScript that we as users can fill out names in an online form, filter dresses by popularity on an e-commerce website, and listen to our favorite music on Spotify. JavaScript ...

2 min read · [learnwithriya.hashnode.dev](https://learnwithriya.hashnode.dev/javascript-an-overview?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/javascript-an-overview/6398845e717a737431411d9c) [Dec 13, 2022](https://hashnode.com/posts/javascript-an-overview/6398845e717a737431411d9c)

### [CSS Units](https://learnwithriya.hashnode.dev/css-units?utm_source=hashnode&utm_medium=feed)

Selecting the perfect unit for your CSS code can be daunting. Here, is a basic explanation of the most used units and which ones to go for your styling needs. Units are broadly classified into two categories:- Absolute units Relative units Confused...

2 min read · [learnwithriya.hashnode.dev](https://learnwithriya.hashnode.dev/css-units?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/css-units/632b0a77a50bab2ed3c5b4cd) [Sep 21, 2022](https://hashnode.com/posts/css-units/632b0a77a50bab2ed3c5b4cd)
