0.0.1 • Published 5 years ago
@uitheory/react-flip v0.0.1
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>;
0.0.1
5 years ago