diff --git a/src/React.re b/src/React.re index b4021746a..b6bf3f2b8 100644 --- a/src/React.re +++ b/src/React.re @@ -902,16 +902,4 @@ module Experimental = { ('state, ('state, 'optimisticValue) => 'state) => ('state, 'optimisticValue => unit) = "useOptimistic"; - - type formStatus = { - pending: bool, - data: FormData.t, - [@mel.as "method"] - method_: [ | `get | `post], - action: Js.Nullable.t(unit => unit), - }; - - /* https://react.dev/reference/react-dom/hooks/useFormStatus#use-form-status */ - [@mel.module "react"] - external useFormStatus: unit => formStatus = "useFormStatus"; }; diff --git a/src/React.rei b/src/React.rei index 183a5fef0..fa07aa220 100644 --- a/src/React.rei +++ b/src/React.rei @@ -589,18 +589,6 @@ module Experimental: { external useTransitionAsync: unit => (bool, callbackAsync(callbackAsync(unit, unit), unit)) = "useTransition"; - - type formStatus = { - pending: bool, - data: FormData.t, - [@mel.as "method"] - method_: [ | `get | `post], - action: Js.Nullable.t(unit => unit), - }; - - /* https://react.dev/reference/react-dom/hooks/useFormStatus#use-form-status */ - [@mel.module "react"] - external useFormStatus: unit => formStatus = "useFormStatus"; }; [@mel.set] diff --git a/src/ReactDOM.re b/src/ReactDOM.re index 15a029530..2c9c4fead 100644 --- a/src/ReactDOM.re +++ b/src/ReactDOM.re @@ -1593,3 +1593,17 @@ external jsxs: (string, domProps) => React.element = "jsxs"; [@mel.module "react/jsx-runtime"] external jsxsKeyed: (string, domProps, ~key: string=?, unit) => React.element = "jsxs"; + +module Experimental = { + type formStatus = { + pending: bool, + data: FormData.t, + [@mel.as "method"] + method_: [ | `get | `post], + action: Js.Nullable.t(unit => unit), + }; + + /* https://react.dev/reference/react-dom/hooks/useFormStatus#use-form-status */ + [@mel.module "react"] + external useFormStatus: unit => formStatus = "useFormStatus"; +}; diff --git a/src/ReactDOM.rei b/src/ReactDOM.rei index b907a1b4e..794638a67 100644 --- a/src/ReactDOM.rei +++ b/src/ReactDOM.rei @@ -1594,3 +1594,17 @@ external jsxs: (string, domProps) => React.element = "jsxs"; [@mel.module "react/jsx-runtime"] external jsxsKeyed: (string, domProps, ~key: string=?, unit) => React.element = "jsxs"; + +module Experimental: { + type formStatus = { + pending: bool, + data: FormData.t, + [@mel.as "method"] + method_: [ | `get | `post], + action: Js.Nullable.t(unit => unit), + }; + + /* https://react.dev/reference/react-dom/hooks/useFormStatus#use-form-status */ + [@mel.module "react"] + external useFormStatus: unit => formStatus = "useFormStatus"; +};