---
title: "Discussion on \"How React's Render, Effects and Refs work under the hood\" | Hashnode"
description: "Discussion on \"How React's Render, Effects and Refs work under the hood\". Never be confused again and write better React code."
url: "https://hashnode.com/posts/how-reacts-render-effects-and-refs-work-under-the-hood/677e99c75f79a91d923d8185"
---

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

Discussion

# [How React's Render, Effects and Refs work under the hood](https://tigerabrodi.blog/how-reacts-render-effects-and-refs-work-under-the-hood?utm_source=hashnode&utm_medium=feed)

Never be confused again and write better React code.

Jan 8, 2025 · 10 min read · tigerabrodi.blog  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#performance](https://hashnode.com/tag/performance)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

@tigerabrodi · Germany

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

Obsessed with crafting software.

Just a guy who loves to write code and watch anime.

## Responses 6

Markdown supported · ⌘↵ to post

[klement Gunndu](https://hashnode.com/@klementgunnduai)

[Mar 15](https://hashnode.com/posts/how-reacts-render-effects-and-refs-work-under-the-hood/677e99c75f79a91d923d8185/comment/69b600b28d1b5d608f5d635d)

The breakdown of the render phase vs commit phase distinction is solid — one thing worth adding is that React 18's concurrent features mean the render phase can now be interrupted and restarted, which changes how you reason about side effects during rendering. The batching section is especially relevant since automatic batching in React 18 now applies inside setTimeout and promises too, not just event handlers.

[Gwenan Spearing](https://hashnode.com/@gwens)

[Apr 7, 2025](https://hashnode.com/posts/how-reacts-render-effects-and-refs-work-under-the-hood/677e99c75f79a91d923d8185/comment/67f39d398be5581106ff990e)

ChatGPT brought me here when I asked for the best resources to revise React's render cycle, and it didn't disappoint, thanks.

Can I suggest a clarification?

"Every call gets added to the call stack. Then the browser clears it from top to bottom."

This seems a bit misleading, as if all the function calls shown in the snippet are first added to the call stack and only then are they all executed. But each of the DOM API calls would be added to the call stack, executed, and then popped off, before the next one would be added.

Not react-related, but it threw me for a minute.

[Md. Jawad Shahriar](https://hashnode.com/@jsmikat)

[Mar 23, 2025](https://hashnode.com/posts/how-reacts-render-effects-and-refs-work-under-the-hood/677e99c75f79a91d923d8185/comment/67df6841da34679575a83f21)

Just love the way you explained! I'm totally satisfied, thanks

[Caique Roschel](https://hashnode.com/@croschel)

[Jan 28, 2025](https://hashnode.com/posts/how-reacts-render-effects-and-refs-work-under-the-hood/677e99c75f79a91d923d8185/comment/6798e2139535676462ffe128)

This post is amazing! Congrats for make all this complicated things much easier to understand even for people that works long time with React.

[RiyaSree](https://hashnode.com/@riyasree)

[Jan 9, 2025](https://hashnode.com/posts/how-reacts-render-effects-and-refs-work-under-the-hood/677e99c75f79a91d923d8185/comment/677fbfadd569557a86602c53)

Really enjoyed this post! You explained everything so clearly. Do you think one method works better than another in some situations?

[Grzegorz Chyła](https://hashnode.com/@gregch)

[Jan 8, 2025](https://hashnode.com/posts/how-reacts-render-effects-and-refs-work-under-the-hood/677e99c75f79a91d923d8185/comment/677ed7b20fad106e679ca8ce)

Love the way you write about such a technical stuff. Keep up the great job!

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

[Jan 9, 2025](https://hashnode.com/posts/how-reacts-render-effects-and-refs-work-under-the-hood/677e99c75f79a91d923d8185/comment/677ed7b20fad106e679ca8ce#reply-677f98f6f85a8f3afa5266da)

Thank you :D
