JSFiddle - React, Tailwind, and code Playground
JavaScript
let a = { name: "A" };
let b = { name: "B" };
a.target = b;
b.target = a;
console.log(JSON.stringify([a,b]));
let a = { name: "A" };
let b = { name: "B" };
a.target = b;
b.target = a;
console.log(JSON.stringify([a,b]));