Skip to content

Commit

Permalink
Merge branch '19' of github.com:/reasonml/reason-react into 19
Browse files Browse the repository at this point in the history
* '19' of github.com:/reasonml/reason-react:
  Update src/React.re
  Update src/React.re
  Update src/React.re
  • Loading branch information
davesnx committed Nov 25, 2024
2 parents e78adcc + 5636b99 commit 5481b9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/React.re
Original file line number Diff line number Diff line change
Expand Up @@ -887,14 +887,16 @@ 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 */
[@mel.module "react"]
external useTransitionAsync:
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) =>
Expand Down

0 comments on commit 5481b9e

Please sign in to comment.