algolia / algolia/react-element-to-jsx-string
Crash with v14.3.3 and newer with Gatsby
Open
- Dominant language
- JavaScript
- Stars
- 518
- Forks
- 87
- Avg merge
- 3h 56m
- Merged PRs (30d)
- 3
Description
I'm having a weird issue with react-element-to-jsx-string and Gatsby with the latest version.
This will crash the browser with 14.3.4, but works in 14.3.2.
Only happens inside Gatsby page in develop mode. Any ideas?
```tsx
import React from 'react'
import reactElementToJSXString from 'react-element-to-jsx-string'
const Foo = () =>
}}>Hello
// ^- causes the crash
const Page = () => <>{reactElementToJSXString(Foo())}
export default Page
```
Reproduction: https://github.com/tu4mo/gatsby-retjs-issue
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.