0.0.2 • Published 8 years ago
react-toggle-flags v0.0.2
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
npm start
Compatibility
Screenshot
License
MIT
0.0.2
8 years ago