react-switcher

1.0.2 • Public • Published

React Switcher

Demo

Source Source

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

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i react-switcher

    Weekly Downloads

    54

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • zalmoxisus