react-toggle-flags
0.0.2 • Public • Published react-toggle-flags

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
Compatibility
Screenshot

License
MIT
/react-toggle-flags/
//
Package Sidebar
Install
Weekly Downloads