Skip to content

Commit 5481b9e

Browse files
committed
Merge branch '19' of github.com:/reasonml/reason-react into 19
* '19' of github.com:/reasonml/reason-react: Update src/React.re Update src/React.re Update src/React.re
2 parents e78adcc + 5636b99 commit 5481b9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/React.re

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,14 +887,16 @@ external useDebugValue: ('value, ~format: 'value => string=?, unit) => unit =
887887

888888
module Experimental = {
889889
/* This module is used to bind to APIs for future versions of React. There is no guarantee of backwards compatibility or stability. */
890+
/* https://react.dev/reference/react/use */
890891
[@mel.module "react"] external usePromise: Js.Promise.t('a) => 'a = "use";
891892
[@mel.module "react"] external useContext: Context.t('a) => 'a = "use";
893+
/* https://react.dev/reference/react/useTransition */
892894
[@mel.module "react"]
893895
external useTransitionAsync:
894896
unit => (bool, callbackAsync(callbackAsync(unit, unit), unit)) =
895897
"useTransition";
896898

897-
/* https://es.react.dev/reference/react/useOptimistic */
899+
/* https://react.dev/reference/react/useOptimistic */
898900
[@mel.module "react"]
899901
external useOptimistic:
900902
('state, ('state, 'optimisticValue) => 'state) =>

0 commit comments

Comments
 (0)