useTransition
and useActionState
.use
: Read resources in render, supporting conditional calls and promises.Installation
Update types (Optional - TypeScript only)
@types/react
and @types/react-dom
. Until the stable release, the types are available in different packages which need to be enforced in your package.json
:Run codemods
react-codemod
repo.