We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a77f2f1 commit 92db093Copy full SHA for 92db093
compiler/syntax/src/jsx_v4.ml
@@ -1246,7 +1246,7 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
1246
Lident
1247
(match rec_flag with
1248
| Recursive -> internal_fn_name
1249
- | Nonrecursive -> "make");
+ | Nonrecursive -> fn_name);
1250
loc;
1251
})
1252
[(Nolabel, Exp.ident {txt = Lident "props"; loc})]))
@@ -1259,7 +1259,7 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
1259
in
1260
1261
Vb.mk ~attrs:modified_binding.pvb_attributes
1262
- (Pat.var {txt = "make"; loc})
+ (Pat.var {txt = fn_name; loc})
1263
internal_expression
1264
1265
0 commit comments