reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.12k stars 428 forks source link

Bug in jsx #2595

Closed jfrolich closed 4 years ago

jfrolich commented 4 years ago

<a>...{[<b/>,...doc]}</a> transforms to <a> <b /> doc </a> which is invalid (try it here).

Proposal:

Dont rewrite this

Alternative proposal:

turn <tr>...{[<b/>,...doc]}</tr> into <a> <b /> ...doc </a>

Concerns:

we can only easily support a single spread element

jfrolich commented 4 years ago

Duplicate of #2591