0.0.1 • Published 5 years ago

@uitheory/react-flip v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

React Flip

React bindings for @uitheory/flip.

Installation

  npm install --save @uitheory/flip @uitheory/react-flip
  #or yarn
  yarn add @uitheory/flip @uitheory/react-flip

Usage

import flip from '@uitheory/flip';
import { Feature, FlipProvider } from '@uitheory/react-flip';

<FlipProvider
  flip={flip({
    features: {
      hello: true,
    },
    context: {},
  })}
>
  <Feature flag="hello">
    <span>Enabled!</span>
  </Feature>
</FlipProvider>;