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
Stateless React switcher component to toggle container states.
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
Stateless React switcher component to toggle container states.
MIT License