react-switcher
Stateless React switcher component.
Last updated 9 years ago by zalmoxisus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install react-switcher 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           latest (9 years ago)

4 Versions

  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (12)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE