Skip to content

Placement of closing > in JSX #1835

@alex35mil

Description

@alex35mil
/* Now */
<Component
  prop1
  prop2>
  ("child" |> ReasonReact.stringToElement)
</Component>

/* VS */
<Component
  prop1
  prop2
>
  ("child" |> ReasonReact.stringToElement)
</Component>

I used to the latter, imo it's easier to spot this place this way. Also, it's consistent with:

<Component
  prop1
  prop2
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    KIND: FEATURE REQUESTPrinterthings that have to do with turning an AST into Reason code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions