lukeed / klona

A tiny (240B to 501B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cant copy jsx.element in object

mezhanglei opened this issue · comments

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

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.