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.
To see the useOptimistic
hook in action, clone the repository and run:
npm install
npm run dev