0.0.2 • Published 8 years ago

react-toggle-flags v0.0.2

Weekly downloads
2
License
MIT
Repository
-
Last release
8 years ago

react-toggle-flags

npm.io npm.io

A component which will help toggling boolean flags easily in your app.

Install

npm install react-toggle-flags

Usage:

Show control pannel

import  ToggleFlagsToolbar,{Flag} from 'react-toggle-flags';
import  'style!css!react-toggle/style.css';
import  'style!css!react-toggle-flags/style.css';

const demo = <ToggleFlagsToolbar flags={["flag1","flag2"]}/>

Read flag value in app

import {Flag} from 'react-toggle-flags';

if(Flag('flag1')){
  ...
}

Development

npm start

Compatibility

Screenshot

screenshot

License

MIT