DEV Community

Discussion on: Copying objects in JavaScript

Collapse
 
ip127001 profile image
Rohit Kumawat

😀 Interesting scenario!
I encountered this problem when I was passing down some data to child components but somehow it was changing data in parent component too.

Thanks for reading!