react-switcher
v1.0.2
Published
Stateless React switcher component.
Downloads
89
Maintainers
Readme
React Switcher
Demo
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