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

    Install

    npm i react-switcher

    DownloadsWeekly Downloads

    155

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • zalmoxisus