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

react-js-switch

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-js-switch - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "react-js-switch",
"version": "1.0.0",
"version": "1.0.1",
"description": "Switch is a visual toggle between two mutually exclusive states — on and off.",

@@ -5,0 +5,0 @@ "main": "react-js-switch.js",

@@ -13,30 +13,23 @@ # react-js-switch

```
/...
```javascript
//...
import Switch from 'react-js-switch'
import Switch from 'react-js-switch';
export default function App() {
const [isSwitchOn, setIsSwitchOn] = useState(true);
const [isSwitchOn, setIsSwitchOn] = useState(true)
const switch_onChange_handle = () => {
setIsSwitchOn(!isSwitchOn);
//...
};
const switch_onChange_handle = () => {
setIsSwitchOn(!isSwitchOn)
/...
}
return (
<div>
/...
<Switch
value={isSwitchOn}
onChange={switch_onChange_handle}
/>
/...
</div>
);
return (
<div>
//...
<Switch value={isSwitchOn} onChange={switch_onChange_handle} />
//...
</div>
);
}
```

@@ -43,0 +36,0 @@

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