We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 235bfd0 commit dd90512Copy full SHA for dd90512
src/React.res
@@ -441,3 +441,7 @@ module Usable = {
441
/** `use` is a React API that lets you read the value of a resource like a Promise or context. */
442
@module("react")
443
external use: Usable.t<'value> => 'value = "use"
444
+
445
+/** `act` is a test helper to apply pending React updates before making assertions. */
446
+@module("react")
447
+external act: (unit => promise<unit>) => promise<unit> = "act"
0 commit comments