togglr-js
v1.3.0
Published
Feature Flagging as a Service for React components
Downloads
3
Readme
togglr-js
Feature Flagging as a Service for React components
What is Togglr?
Unlimited Feature Flagging for your React Web Applications. A name-your-price, simple, no-frills, perfect for small side projects, and just for suggested monthly price of a slice of some ‘za 🍕
Create account
Create an organization at https://www.react-togglr.com/.
Install
npm install --save togglr-js
Usage
import React from 'react'
import { FeatureFlagProvider, FeatureFlag } from 'togglr-js'
const App = () => {
return (
<div>
<FeatureFlagProvider
environment='production'
organizationKey='<ORGANIZATION_KEY>'
>
<h1>My Awesome App</h1>
<p>Pretty cool isn't it? Lorem ipsum dolar set</p>
<FeatureFlag flagName='button_b_test'>
<div>Component that is feature flagged</div>
</FeatureFlag>
</FeatureFlagProvider>
</div>
)
}
License
MIT © Christian Bryant