Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Reformat issue with function in ternary in JSX #363

Closed
@bloodyowl

Description

@bloodyowl

When hitting the reformat button, the parens disappear and creates a syntax error

let value = "";
let x = true;
let onChange = _ => ();

let y = <input value onChange={x ? (_ => ()) : onChange} />

https://rescript-lang.org/try?code=DYUwLgBAbghsCuIIF4ICI0G4BQpIA8UIwAnRHPCAewDsBhACxhoHMlUB9FAPggAoAlDlzgIATyIAeAJY0ADvEiwESWo2ZtkAb0IB+fl2S9BAiAC5q9JqxABfCAHpuQA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions