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

npm start

Compatibility

Screenshot

screenshot

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i react-toggle-flags

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • wyvernnot