File tree Expand file tree Collapse file tree 5 files changed +12
-1
lines changed Expand file tree Collapse file tree 5 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 22
22
23
23
- Fix variance setting for builtin ` dict ` type. Fixes issues around inference. https://github.com/rescript-lang/rescript-compiler/pull/6707
24
24
25
+ #### :rocket : New Feature
26
+
27
+ - Allow hyphen in JSX prop names. https://github.com/rescript-lang/rescript-compiler/pull/6705
28
+
25
29
# 11.1.0-rc.6
26
30
27
31
#### :rocket : New Feature
Original file line number Diff line number Diff line change @@ -4410,6 +4410,7 @@ and printJsxProps ~state args cmtTbl : Doc.t * Parsetree.expression option =
4410
4410
loop [] args
4411
4411
4412
4412
and printJsxProp ~state arg cmtTbl =
4413
+ let printIdentLike ident = printIdentLike ~allow Hyphen:true ident in
4413
4414
match arg with
4414
4415
| ( ((Asttypes. Labelled lblTxt | Optional lblTxt) as lbl),
4415
4416
{
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ lazy \"let"
62
62
let x = 1
63
63
64
64
let x =
65
- <div \" aria-foo" =\"type">
65
+ <div aria-foo=\"type">
66
66
\"module"
67
67
\"let"
68
68
</div>
Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ let x =
47
47
{a}
48
48
<B />
49
49
</Foo.custom-tag>
50
+ let x =
51
+ <custom-tag data-custom-state=true>
52
+ {a}
53
+ <B />
54
+ </custom-tag>
50
55
51
56
let x = <div className="container" className2="container2" className3="container3" onClick />
52
57
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ let x = <A> {a} </A>
17
17
let x = <A > {a } {b } </A >
18
18
let x = <custom - tag className = "container" > {a } <B /> </custom - tag >
19
19
let x = <Foo .custom - tag className = "container" > {a } <B /> </Foo .custom - tag >
20
+ let x = <custom - tag data - custom - state = true > {a } <B /> </custom - tag >
20
21
21
22
let x =
22
23
<div
You can’t perform that action at this time.
0 commit comments