Socket
Book a DemoInstallSign in
Socket

react-switcher

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-switcher

Stateless React switcher component.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

React Switcher

Demo

SourceSource

Installation

npm install --save react-switcher

Usage

import Switcher from 'react-switcher';

<Switcher
   on={this.state.isLocal} 
   onClick={() => this.setState({ isLocal: !this.state.isLocal })}
>
   Use local server
</Switcher>

License

MIT

Keywords

reactjs

FAQs

Package last updated on 03 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts