JSFiddle - React, Tailwind, and code Playground
JavaScript
const test = {"foo": 1, "bar": 2}
console.log(test)
const test2 = test;
delete test2.foo
console.log(test2)
console.log(test)
const test = {"foo": 1, "bar": 2}
console.log(test)
const test2 = test;
delete test2.foo
console.log(test2)
console.log(test)