https://github.com/interviewstreet/react-optimistic-toggle
Helps you to build Optimistic UI.
https://github.com/interviewstreet/react-optimistic-toggle
async optimistic-updates promises react react-hooks
Last synced: about 1 year ago
JSON representation
Helps you to build Optimistic UI.
- Host: GitHub
- URL: https://github.com/interviewstreet/react-optimistic-toggle
- Owner: interviewstreet
- License: mit
- Created: 2019-04-09T15:59:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:43:25.000Z (over 3 years ago)
- Last Synced: 2025-05-27T16:57:55.153Z (about 1 year ago)
- Topics: async, optimistic-updates, promises, react, react-hooks
- Language: JavaScript
- Homepage: https://react-optimistic-toggle.netlify.com/
- Size: 1.15 MB
- Stars: 2
- Watchers: 67
- Forks: 1
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Optimistic Toggle
React component to build Optimistic UIs.
If you see the 'FB or Twitter Like Button' or 'Add To Favorite' button in many websites you'll notice that when you click on the button it instantly shows that you have liked it. It then sends a request, if the request succeeds then the post stays liked otherwise it reverts back to unliked state. This is called Optimistic UI update.
`react-optimistic-toggle` helps you build these kind of UI effortlessly.
* [Docs](https://react-optimistic-toggle.netlify.com/)
* [npm](https://www.npmjs.com/package/react-optimistic-toggle)