/* 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
/>
Another option would be to further indent the properties.
<Component
prop1
prop2>
("child" |> ReasonReact.stringToElement)
</Component>
This makes the distinction between props and children more clear without adding an extra line. The Google style guide suggests formatting tags this way.
I'd be consistent w/ Prettier and /> 馃槢
I agree it would be best if /> and > formatted consistently.
@IwanKaramazow @rickyvetter TBH current behavior introduces a lot of inconvenience:
> to the next line> to the next lineo (vim) or Cmd + Enter w/o moving closing > to the next line.Can it be reconsidered?
Most helpful comment
@IwanKaramazow @rickyvetter TBH current behavior introduces a lot of inconvenience:
>to the next line>to the next lineo(vim) orCmd + Enterw/o moving closing>to the next line.Can it be reconsidered?