This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ let jsxMapper () =
361
361
Location. prerr_warning pattern.ppat_loc
362
362
(Preprocessor
363
363
(Printf. sprintf
364
- " ReasonReact : optional argument annotations must have explicit `option`. Did you mean \
364
+ " React : optional argument annotations must have explicit `option`. Did you mean \
365
365
`option(%s)=?`?"
366
366
currentType)) )
367
367
| _ -> ()
@@ -386,7 +386,7 @@ let jsxMapper () =
386
386
(list , Some txt)
387
387
| Pexp_fun (Nolabel, _ , pattern , _expression ) ->
388
388
Location. raise_errorf ~loc: pattern.ppat_loc
389
- " ReasonReact : react.component refs only support plain arguments and type annotations."
389
+ " React : react.component refs only support plain arguments and type annotations."
390
390
| _ -> (list , None )
391
391
[@@ raises Invalid_argument ]
392
392
in
@@ -562,7 +562,7 @@ let jsxMapper () =
562
562
if hasApplication.contents then ((fun a -> a), false , unerasableIgnoreExp expression)
563
563
else
564
564
Location. raise_errorf ~loc: pattern.ppat_loc
565
- " ReasonReact : props need to be labelled arguments.\n \
565
+ " React : props need to be labelled arguments.\n \
566
566
\ If you are working with refs be sure to wrap with React.forwardRef.\n \
567
567
\ If your component doesn't have any props use () or _ instead of a name."
568
568
(* let make = {let foo = bar in (~prop) => ...} *)
You can’t perform that action at this time.
0 commit comments