---
title: "Discussion on \"A Beginner guide to Mastering Re-rendering in React\" | Hashnode"
description: "Discussion on \"A Beginner guide to Mastering Re-rendering in React\". \"Navigating the Fundamentals of Reconciliation and Techniques for Optimizing Re-rendering\""
url: "https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d"
---

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

Discussion

# [A Beginner guide to Mastering Re-rendering in React](https://atharvabhuse.hashnode.dev/a-beginner-guide-to-mastering-re-rendering-in-react?utm_source=hashnode&utm_medium=feed)

"Navigating the Fundamentals of Reconciliation and Techniques for Optimizing Re-rendering"

Jan 31, 2023 · 14 min read · atharvabhuse.hashnode.dev  
Updated Jul 19, 2025  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#optimization](https://hashnode.com/tag/optimization)
-   [#rendering](https://hashnode.com/tag/rendering)
-   [#state](https://hashnode.com/tag/state)

## Written by

[Atharva Bhuse](https://hashnode.com/@atharvabhuse)

@atharvabhuse · Mumbai, India

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

Software engineer

• Maintained high-level expertise in React state management strategies. • Developed forms, models, Error boundary using React hooks. • Communicated with product managers and UX designers to translate project requirements and business objectives into polished user interfaces using React, JavaScript, HTML, CSS. • Designed REST calls using React to streamline user interface performance. • Improved and expanded project platforms using React to develop rich User Interfaces. • Integrated UI features complying with prescribed code standards and technical design guidelines. • Documented technical workflows and work done for the client and support team of the organization.

## Responses 8

Markdown supported · ⌘↵ to post

[Eshan Bhuse](https://hashnode.com/@eshanbhuse)

[Apr 25, 2024](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/662a3a8aaf165b9c0918c10b)

This article really helps me to get deep a knowledge of React

[Apr 26, 2024](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/662a3a8aaf165b9c0918c10b#reply-662bc560dafa11b0aebacbe0)

Thanks Eshan

[Jayesh Potlabattini](https://hashnode.com/@JayeshVP24)

[Feb 4, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63deb2a5870f1899b96ee8af)

Understanding re-renders is always a bit difficult but this article made it really really easy! Thanks a lot Atharva, I learned something new today.

[Jayesh Potlabattini](https://hashnode.com/@JayeshVP24)

[Feb 5, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63deb2a5870f1899b96ee8af#reply-63dfaa65666a6ca61942d1de)

[Atharva Bhuse](https://hashnode.com/@atharvabhuse) thanks for answering my questions Atharva👍

[Atharva Bhuse](https://hashnode.com/@atharvabhuse)

[Feb 5, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63deb2a5870f1899b96ee8af#reply-63dfaa73bf2ce4a649f5d602)

Thanks Jayesh

[Atharva Bhuse](https://hashnode.com/@atharvabhuse)

[Feb 5, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63deb2a5870f1899b96ee8af#reply-63dfab7ebf2ce4a649f5d624)

Hello Jayesh, I would be happy to help you with that. Expensive operations are those operations that take longer time to execute such as complicated functions in component, API all with larger amount of data. setState can be an expensive function and we can avoid it by simply batching multiple states with single setState. we can also use useMemo() hook to decrease number of re-renders. Thanks Jayesh for your question, have a great day!!

[Garv Nanwani](https://hashnode.com/@Garvnanwani)

[Feb 1, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63dab8061699246a25c21d57)

Can you provide any reference or docs where there is more detail about the {lazy: true} argument in useEffect ?

[Atharva Bhuse](https://hashnode.com/@atharvabhuse)

[Feb 1, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63dab8061699246a25c21d57#reply-63dac2eef5b65869f5efd892)

Here you will find details- [reactjs.org/docs/hooks-reference.html](https://reactjs.org/docs/hooks-reference.html)

[Garv Nanwani](https://hashnode.com/@Garvnanwani)

[Feb 2, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63dab8061699246a25c21d57#reply-63dbdd3f5a58f27acdbef63f)

[Atharva Bhuse](https://hashnode.com/@atharvabhuse) Sorry, But I cant see the mention for lazy loading useEffect, can you please guide me

[Atharva Bhuse](https://hashnode.com/@atharvabhuse)

[Feb 2, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63dab8061699246a25c21d57#reply-63dbef37f76a5c7a9df826f2)

Here you will find details- [reactjs.org/docs/hooks-reference.html](https://reactjs.org/docs/hooks-reference.html#useeffect)

[Anmol Jhamb](https://hashnode.com/@heyitsanmolj)

[Feb 1, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63da732a4d93226420f6605e)

Hey! It was a great article! I just started out with React just last month. and I had a small doubt, would it be better to use a useRef hook when I have a form with around 5 or 6 fields? It doesn't re-render the component, right? but if we only need the value of the inputs onSubmit, so do we really need to re-render them? I am a beginner so I don't really know if it would be a good approach or not. I'd really appreciate your thoughts on this!

[Atharva Bhuse](https://hashnode.com/@atharvabhuse)

[Feb 1, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63da732a4d93226420f6605e#reply-63daa36ab7131763ef1af2f1)

Hello Anmol, I would be happy to help you with that. Yes, you are right. useRef() does not re-render the component but it is still preferable to use useState() hook because it keeps component up-to-date with latest state. Even if you need value of the inputs on submit of the form, I will suggest to use useState() hook because it provides a better control on each input value change and corresponding behavior of submit button. For example you can display error messages and disable submit button if user is entering wrong input value. I would like to suggest you Formik and Yup libraries for state management and validating form inputs in React. Thanks Anmol for your question, have a great day!!

[Anmol Jhamb](https://hashnode.com/@heyitsanmolj)

[Feb 1, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63da732a4d93226420f6605e#reply-63daa60db7131763ef1af363)

Thanks for recommending the libraries!! I'll be sure to use them the next time I have to manage a frame. Also, do you have a blog that details all the basic 10 react hooks? [Atharva Bhuse](https://hashnode.com/@atharvabhuse)

[Atharva Bhuse](https://hashnode.com/@atharvabhuse)

[Feb 1, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63da732a4d93226420f6605e#reply-63dab69b1699246a25c21cfb)

I don't have blog on this topic right now, but I will definitely consider your suggestion. Thanks Anmol

[Ankush](https://hashnode.com/@ankush123554)

[Feb 1, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63da669bb7131763ef1ae65b)

Great article!!

[Atharva Bhuse](https://hashnode.com/@atharvabhuse)

[Feb 1, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63da669bb7131763ef1ae65b#reply-63da6701b7131763ef1ae677)

Thanks Ankush

[Azmath](https://hashnode.com/@Azmath)

[Jan 31, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63d95095aa8c8258b0608604)

Great article! It provides a comprehensive overview of re-rendering in react, especially for beginner. The clear explanation and examples make it easy to understand the concept. Thank you for sharing.

[Atharva Bhuse](https://hashnode.com/@atharvabhuse)

[Jan 31, 2023](https://hashnode.com/posts/a-beginner-guide-to-mastering-re-rendering-in-react/63d91ede69f9992b3f24590d/comment/63d95095aa8c8258b0608604#reply-63d95580aa8c8258b06086fe)

Thanks Azmath
