This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree 3 files changed +16
-2
lines changed
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -4337,7 +4337,7 @@ and printJsxProp ~customLayout arg cmtTbl =
4337
4337
| Optional _lbl -> Doc. concat [Doc. question; printIdentLike ident])
4338
4338
| Asttypes. Labelled "_spreadProps" , expr ->
4339
4339
let doc = printExpressionWithComments ~custom Layout expr cmtTbl in
4340
- Doc. concat [Doc. lbrace; Doc. dotdotdot; Doc. softLine; doc; Doc. rbrace]
4340
+ Doc. concat [Doc. lbrace; Doc. dotdotdot; doc; Doc. rbrace]
4341
4341
| lbl , expr ->
4342
4342
let argLoc, expr =
4343
4343
match expr.pexp_attributes with
Original file line number Diff line number Diff line change @@ -410,3 +410,10 @@ let v =
410
410
</A>
411
411
412
412
let x = <A x="y" {...str} />
413
+
414
+ // https://github.com/rescript-lang/rescript-compiler/issues/6002
415
+ let x = props =>
416
+ <A
417
+ {...props}
418
+ className="inline-block px-6 py-2.5 bg-blue-600 text-white font-medium text-xs leading-tight"
419
+ />
Original file line number Diff line number Diff line change @@ -402,4 +402,11 @@ let v =
402
402
</B >
403
403
</A >
404
404
405
- let x = <A x = "y" {... str } />
405
+ let x = <A x = "y" {... str } />
406
+
407
+ // https://github.com/rescript-lang/rescript-compiler/issues/6002
408
+ let x = props =>
409
+ <A
410
+ {... props }
411
+ className = "inline-block px-6 py-2.5 bg-blue-600 text-white font-medium text-xs leading-tight"
412
+ />
You can’t perform that action at this time.
0 commit comments