react-live icon indicating copy to clipboard operation
react-live copied to clipboard

bad syntax React.useEffect crashs the site

Open gjc14 opened this issue 4 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

Code Sandbox link

https://nearform.com/open-source/react-live

Bug report

In react-live website, try pasting this code. Then **n is not a function** error will occur and breaks the page.


() => {
  React.useEffect(()=>[])
}
Image

gjc14 avatar Oct 07 '25 23:10 gjc14