$ npm install react-switcher
Source | Source |
npm install --save react-switcher
import Switcher from 'react-switcher';
<Switcher
on={this.state.isLocal}
onClick={() => this.setState({ isLocal: !this.state.isLocal })}
>
Use local server
</Switcher>
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE