@@ -367,6 +367,60 @@ external useImperativeHandle7: (
367367 ('a , 'b , 'c , 'd , 'e , 'f , 'g ),
368368) => unit = "useImperativeHandle"
369369
370+ @module ("react" ) external useId : unit => string = "useId"
371+
372+ @module ("react" ) external useDeferredValue : 'value => 'value = "useDeferredValue"
373+
374+ @module ("react" )
375+ external useTransition : unit => (bool , (. unit => unit ) => unit ) = "useTransition"
376+
377+ @module ("react" )
378+ external useInsertionEffect : (@uncurry (unit => option <unit => unit >)) => unit =
379+ "useInsertionEffect"
380+ @module ("react" )
381+ external useInsertionEffect0 : (@uncurry (unit => option <unit => unit >), @as (json ` []` ) _ ) => unit =
382+ "useInsertionEffect"
383+ @module ("react" )
384+ external useInsertionEffect1 : (@uncurry (unit => option <unit => unit >), array <'a >) => unit =
385+ "useInsertionEffect"
386+ @module ("react" )
387+ external useInsertionEffect2 : (@uncurry (unit => option <unit => unit >), ('a , 'b )) => unit =
388+ "useInsertionEffect"
389+ @module ("react" )
390+ external useInsertionEffect3 : (@uncurry (unit => option <unit => unit >), ('a , 'b , 'c )) => unit =
391+ "useInsertionEffect"
392+ @module ("react" )
393+ external useInsertionEffect4 : (@uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd )) => unit =
394+ "useInsertionEffect"
395+ @module ("react" )
396+ external useInsertionEffect5 : (
397+ @uncurry (unit => option <unit => unit >),
398+ ('a , 'b , 'c , 'd , 'e ),
399+ ) => unit = "useInsertionEffect"
400+ @module ("react" )
401+ external useInsertionEffect6 : (
402+ @uncurry (unit => option <unit => unit >),
403+ ('a , 'b , 'c , 'd , 'e , 'f ),
404+ ) => unit = "useInsertionEffect"
405+ @module ("react" )
406+ external useInsertionEffect7 : (
407+ @uncurry (unit => option <unit => unit >),
408+ ('a , 'b , 'c , 'd , 'e , 'f , 'g ),
409+ ) => unit = "useInsertionEffect"
410+
411+ @module ("react" )
412+ external useSyncExternalStore : (
413+ ~subscribe : @uncurry ((unit => unit ) => ((. unit ) => unit )),
414+ ~getSnapshot : @uncurry unit => 'state ,
415+ ) => 'state = "useSyncExternalStore"
416+
417+ @module ("react" )
418+ external useSyncExternalStoreWithServerSnapshot : (
419+ ~subscribe : @uncurry ((unit => unit ) => ((. unit ) => unit )),
420+ ~getSnapshot : @uncurry unit => 'state ,
421+ ~getServerSnapshot : @uncurry unit => 'state ,
422+ ) => 'state = "useSyncExternalStore"
423+
370424module Uncurried = {
371425 @module ("react" )
372426 external useState : (@uncurry (unit => 'state )) => ('state , (. 'state => 'state ) => unit ) =
@@ -433,14 +487,6 @@ module Uncurried = {
433487 ) => callback <'input , 'output > = "useCallback"
434488}
435489
436- type transitionConfig = {timeoutMs : int }
437-
438- @module ("react" )
439- external useTransition : (
440- ~config : transitionConfig = ?,
441- unit ,
442- ) => (callback <callback <unit , unit >, unit >, bool ) = "useTransition"
443-
444490@set
445491external setDisplayName : (component <'props >, string ) => unit = "displayName"
446492
0 commit comments