/useOptimistic-hook-nextjs

A demo project showcasing the useOptimistic hook in React 19.

Primary LanguageTypeScript

useOptimistic Hook Example

This repository demonstrates the usage of the useOptimistic hook introduced in React 19. The useOptimistic hook simplifies handling optimistic UI updates, making it easier to improve user experience by rendering changes before server confirmation.

Usage

To see the useOptimistic hook in action, clone the repository and run:

npm install
npm run dev

Happy coding