react-optimistic-ui-hook
Minimal zero dependency "optimistic UI" pattern implementation in a React Hook.
What is "Optimistic UI"?
Optimistic UIs don’t wait for an operation to finish to update to the final state. They immediately switch to the final state, showing fake data for the time while the real operation is still in-progress. Read More Here
Note that you can search for "optimistic UI" and read more about this pattern and how it works. It simply lets your app looks faster by expecting a successful call to something like an API before getting the real response and update the interface based on that expectation.
Installation
Using NPM:
npm install react-optimistic-ui-hook
Using Yarn:
yarn add react-optimistic-ui-hook
Usage
Contribution
You can report bugs and issues here.
You can also send a PR if you feel like you can improve or fix something. Don't forget to write/update tests for your changes.