Skip to content

JSXv4: Recursive component produces infinite loop #5981

Closed
@jeddeloh

Description

@jeddeloh

It seems adding the rec keyword in combination with @react.component will result in an infinite loop when using JSX v4

@react.component
let rec make = () => {
  React.null
}

compiles to

function make(props) {
  while(true) {
    continue ;
  };
}

export {
  make ,
}
/* No side effect */

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions