---
title: "Discussion on \"Why use Immer for state updates?\" | Hashnode"
description: "Discussion on \"Why use Immer for state updates?\". In React (and modern JavaScript in general), we aim for immutable state updates.\nWhy? Because comparing objects by reference is MUCH faster than doing a deep comparison. If an object's reference hasn't changed, we can be certain that nothing inside i..."
url: "https://hashnode.com/posts/why-use-immer-for-state-updates/67b82726a33ceabe32b6b149"
---

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

Discussion

# [Why use Immer for state updates?](https://tigerabrodi.blog/why-use-immer-for-state-updates?utm_source=hashnode&utm_medium=feed)

In React (and modern JavaScript in general), we aim for immutable state updates. Why? Because comparing objects by reference is MUCH faster than doing a deep comparison. If an object's reference hasn't changed, we can be certain that nothing inside i...

Feb 21, 2025 · 3 min read · tigerabrodi.blog  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## 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

Markdown supported · ⌘↵ to post

No responses yet.
