Built-in React APIs – React
Built-in React APIs – React
v19
API REFERENCE
act lets you wrap renders and interactions in tests to ensure updates
have processed before making assertions.
Resource APIs
Resources can be accessed by a component without having them as part of
their state. For example, a component can read a message from a Promise or
read styling information from a context.
use lets you read the value of a resource like a Promise or context.
https://react.dev/reference/react/apis 1/3
20/02/2025, 09:07 Built-in React APIs – React
PREVIOUS
<Suspense>
NEXT
act
uwu?
Describing the UI
Adding Interactivity
Managing State
Escape Hatches
Community More
https://react.dev/reference/react/apis 2/3
20/02/2025, 09:07 Built-in React APIs – React
Acknowledgements Terms
https://react.dev/reference/react/apis 3/3