React 19, the latest version of Meta’s JavaScript library for rendering user interfaces, is now available in beta. The update introduces features such as async functions in transitions and the ability to access ref
as a prop for function components.
The React 19 beta was unveiled April 25. A React 19 beta upgrade guide has been published.
React 19 adds support for using async functions in transitions to handle pending states, forms, errors, and optimistic updates automatically. Functions that use async transitions are called Actions. By building on top of Actions, React 19 introduces useOptimistic
to manage optimistic updates and a new hook, React.useActionState
, to handle common cases for Actions. Actions also are integrated with new <form>
features for react-dom
in React 19.
To read this article in full, please click here