Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-optimistic-toggle

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-optimistic-toggle - npm Package Compare versions

Comparing version 0.2.0 to 0.5.0

.circleci/config.yml

6

package.json
{
"name": "react-optimistic-toggle",
"version": "0.2.0",
"description": "React component to optimistically handle async toggles",
"version": "0.5.0",
"description": "React component to build Optimistic UIs.",
"main": "lib/OptimisticToggle.js",

@@ -15,3 +15,3 @@ "repository": "https://github.com/interviewstreet/react-optimistic-toggle.git",

"docs": "styleguidist server",
"docs:dev": "nodemon -x 'npm run docs' --ignore src/",
"docs:dev": "nodemon -x 'npm run docs' --ignore src/ --ignore lib/",
"docs:build": "styleguidist build"

@@ -18,0 +18,0 @@ },

@@ -1,2 +0,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)

@@ -8,4 +8,13 @@ const path = require('path');

version: pkg.version,
components: 'src/**/*.js',
usageMode: 'expand',
sections: [
{
name: 'Getting Started',
content: 'src/getting-started.docs.md',
},
{
name: 'Examples',
components: 'src/**/*.js',
},
],
ribbon: {

@@ -12,0 +21,0 @@ url: 'https://www.npmjs.com/package/react-optimistic-toggle',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc