1.3.0 • Published 4 years ago

togglr-js v1.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

togglr-js

Feature Flagging as a Service for React components

NPM JavaScript Style Guide

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

1.3.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago