lukeed / klona

A tiny (240B to 501B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!
MIT License
1.62k stars 43 forks source link

cant copy jsx.element in object #36

Open mezhanglei opened 2 years ago

mezhanglei commented 2 years ago

for example: const a = {b: 1, c: <span>dom</span>} const clone = klona(a); ... error info: var k, tmp, str=Object.prototype.toString.call(x); // Maximum call stack size exceeded

maxmilton commented 2 years ago

Can you please provide a sample of the compiled output code? JSX is essentially a templating language and there are various transpilers which output completely different results.