-
Notifications
You must be signed in to change notification settings - Fork 38
JSX v4 record-based representation for lowercase #665
Conversation
@cristianoc What about the |
It seems fine in v4 sample project. More clean js output. // as-is
function V4$Baz(props) {
var name = props.name;
var name$1 = name !== undefined ? name : "baz";
var tmp = {};
if (props.id2 !== undefined) {
tmp.id = Caml_option.valFromOption(props.id2);
}
return React.createElement("div", tmp, name$1, props.children);
}
// to-be
function V4$Baz(props) {
var name = props.name;
var name$1 = name !== undefined ? name : "baz";
return React.createElement("div", {
id: props.id2
}, name$1, props.children);
} I'll run on the largest project. |
It works fine on my company project! |
Seems OK to have |
I think I don't have anything left for this PR now. |
Ready to merge? |
How about updating the changelog? |
Sure, I’ll. |
I've added to Polish 4d4bb2c |
Not sure why suddenly CI gives a compile error on build |
Let me rebase to the master |
4d4bb2c
to
07190b4
Compare
Build fixed 07190b4 |
This PR changes the internal representation of JSX v4 lowercase e.g.
<div />
from object to record