-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# react-optimistic-toggle | ||
React component to optimistically handle async toggles. | ||
# 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) |