From b5d76e5efaaa0f231a9d8427228c78a06297ee58 Mon Sep 17 00:00:00 2001 From: Amirali Esmaeili Date: Sun, 29 Aug 2021 21:09:03 +0430 Subject: [PATCH] Remove references to reasonreact in react ppx diagnostics --- src/reactjs_jsx_ppx_v3.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/reactjs_jsx_ppx_v3.ml b/src/reactjs_jsx_ppx_v3.ml index 87a08ed5..628855db 100644 --- a/src/reactjs_jsx_ppx_v3.ml +++ b/src/reactjs_jsx_ppx_v3.ml @@ -361,7 +361,7 @@ let jsxMapper () = Location.prerr_warning pattern.ppat_loc (Preprocessor (Printf.sprintf - "ReasonReact: optional argument annotations must have explicit `option`. Did you mean \ + "React: optional argument annotations must have explicit `option`. Did you mean \ `option(%s)=?`?" currentType)) ) | _ -> () @@ -386,7 +386,7 @@ let jsxMapper () = (list, Some txt) | Pexp_fun (Nolabel, _, pattern, _expression) -> Location.raise_errorf ~loc:pattern.ppat_loc - "ReasonReact: react.component refs only support plain arguments and type annotations." + "React: react.component refs only support plain arguments and type annotations." | _ -> (list, None) [@@raises Invalid_argument] in @@ -562,7 +562,7 @@ let jsxMapper () = if hasApplication.contents then ((fun a -> a), false, unerasableIgnoreExp expression) else Location.raise_errorf ~loc:pattern.ppat_loc - "ReasonReact: props need to be labelled arguments.\n\ + "React: props need to be labelled arguments.\n\ \ If you are working with refs be sure to wrap with React.forwardRef.\n\ \ If your component doesn't have any props use () or _ instead of a name." (* let make = {let foo = bar in (~prop) => ...} *)