Implementing Optimistic UI in React
Optimistic UI is a UI pattern where changes made by the user are immediately reflected in the UI, before the confirmation from the server that the changes are applied.
The idea of optimistic UI relies on the fact that most requests to server succeeds, so showing the eventual state improves the perceived performance.