Closed
Description
import toString from 'react-element-to-jsx-string';
const el = <Element
prop={{
component: <Component />,
}}
/>
toString(el)
Running the above seems throw the following error:
Uncaught RangeError: Maximum call stack size exceeded
at Array.sort (:80/native)
at sortObject (index.js?a730:225)
at eval (index.js?a730:227)
at Array.reduce (<anonymous>)
at sortObject (index.js?a730:225)
at eval (index.js?a730:227)
at Array.reduce (<anonymous>)
at sortObject (index.js?a730:225)
at eval (index.js?a730:227)
at Array.reduce (<anonymous>)
Here's a demo: https://stackblitz.com/edit/react-element-to-jsx-string-error?file=index.js
Metadata
Metadata
Assignees
Labels
No labels