Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 0903278

Browse files
authored
Remove references to reasonreact in react ppx diagnostics (#458)
1 parent 2995ca8 commit 0903278

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/reactjs_jsx_ppx_v3.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ let jsxMapper () =
361361
Location.prerr_warning pattern.ppat_loc
362362
(Preprocessor
363363
(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 \
365365
`option(%s)=?`?"
366366
currentType)) )
367367
| _ -> ()
@@ -386,7 +386,7 @@ let jsxMapper () =
386386
(list, Some txt)
387387
| Pexp_fun (Nolabel, _, pattern, _expression) ->
388388
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."
390390
| _ -> (list, None)
391391
[@@raises Invalid_argument]
392392
in
@@ -562,7 +562,7 @@ let jsxMapper () =
562562
if hasApplication.contents then ((fun a -> a), false, unerasableIgnoreExp expression)
563563
else
564564
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\
566566
\ If you are working with refs be sure to wrap with React.forwardRef.\n\
567567
\ If your component doesn't have any props use () or _ instead of a name."
568568
(* let make = {let foo = bar in (~prop) => ...} *)

0 commit comments

Comments
 (0)