From 563d8af51e7968a42bc03f9899b1e5ad8784112e Mon Sep 17 00:00:00 2001 From: David Sancho Date: Wed, 20 Nov 2024 14:19:06 +0100 Subject: [PATCH 1/3] Update src/React.re MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Javier Chávarri --- src/React.re | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/React.re b/src/React.re index ba02b4222..c870c9eae 100644 --- a/src/React.re +++ b/src/React.re @@ -894,7 +894,7 @@ module Experimental = { unit => (bool, callbackAsync(callbackAsync(unit, unit), unit)) = "useTransition"; - /* https://es.react.dev/reference/react/useOptimistic */ + /* https://react.dev/reference/react/useOptimistic */ [@mel.module "react"] external useOptimistic: ('state, ('state, 'optimisticValue) => 'state) => From 9ce19ea8fe92313a54ae6c028f135f26637ca35f Mon Sep 17 00:00:00 2001 From: David Sancho Date: Wed, 20 Nov 2024 14:19:14 +0100 Subject: [PATCH 2/3] Update src/React.re MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Javier Chávarri --- src/React.re | 1 + 1 file changed, 1 insertion(+) diff --git a/src/React.re b/src/React.re index c870c9eae..92ae0199a 100644 --- a/src/React.re +++ b/src/React.re @@ -889,6 +889,7 @@ module Experimental = { /* This module is used to bind to APIs for future versions of React. There is no guarantee of backwards compatibility or stability. */ [@mel.module "react"] external usePromise: Js.Promise.t('a) => 'a = "use"; [@mel.module "react"] external useContext: Context.t('a) => 'a = "use"; + /* https://react.dev/reference/react/useTransition */ [@mel.module "react"] external useTransitionAsync: unit => (bool, callbackAsync(callbackAsync(unit, unit), unit)) = From 5636b99b453970029ca12ffd9ce500480fd70b57 Mon Sep 17 00:00:00 2001 From: David Sancho Date: Wed, 20 Nov 2024 14:19:46 +0100 Subject: [PATCH 3/3] Update src/React.re MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Javier Chávarri --- src/React.re | 1 + 1 file changed, 1 insertion(+) diff --git a/src/React.re b/src/React.re index 92ae0199a..431b7a05a 100644 --- a/src/React.re +++ b/src/React.re @@ -887,6 +887,7 @@ external useDebugValue: ('value, ~format: 'value => string=?, unit) => unit = module Experimental = { /* This module is used to bind to APIs for future versions of React. There is no guarantee of backwards compatibility or stability. */ + /* https://react.dev/reference/react/use */ [@mel.module "react"] external usePromise: Js.Promise.t('a) => 'a = "use"; [@mel.module "react"] external useContext: Context.t('a) => 'a = "use"; /* https://react.dev/reference/react/useTransition */