Skip to content

bad syntax React.useEffect crashs the site #413

@gjc14

Description

@gjc14

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions