diff --git a/src/React.re b/src/React.re index ba02b4222..f34c89e67 100644 --- a/src/React.re +++ b/src/React.re @@ -479,7 +479,7 @@ type callbackAsync('input, 'output) = 'input => Js.Promise.t('output); */ [@mel.module "react"] external useState: - ([@mel.uncurry] (unit => 'state)) => ('state, ('state => 'state) => unit) = + (unit => 'state) => ('state, (. ('state => 'state)) => unit) = "useState"; [@mel.module "react"] diff --git a/src/React.rei b/src/React.rei index 372337618..813ff77ba 100644 --- a/src/React.rei +++ b/src/React.rei @@ -167,7 +167,7 @@ module Suspense: { */ [@mel.module "react"] external useState: - ([@mel.uncurry] (unit => 'state)) => ('state, ('state => 'state) => unit) = + (unit => 'state) => ('state, (. ('state => 'state)) => unit) = "useState"; [@mel.module "react"]