---
title: "GAURAV BURANDE (@gauravvan) | Hashnode"
description: "Web development. Read the latest articles by GAURAV BURANDE on Hashnode."
url: "https://hashnode.com/@gauravvan"
---

@gauravvan

# GAURAV BURANDE

@gauravvan · India · Joined August 2022

Web development

## Comments

[A dumb way to copy an object is using the spread operator. Instead use JSON.parse(JSON.stringify(object)) or JS has a new global function for cloning, checkout structuredClone() https://developer.mozilla.org/en-US/docs/Web/API/structuredClone](https://hashnode.com/posts/updating-objects-in-a-state-how-not-to-use-spread-operator/64808d8a837566372d407d58/comment/6481a448ad7b6e44730b7dfd)

Comment · Article · Jun 8, 2023 · [Updating objects in a State. How not to use spread operator.](https://hashnode.com/posts/updating-objects-in-a-state-how-not-to-use-spread-operator/64808d8a837566372d407d58)
