1.0.1 • Published 4 years ago

@fintlabs/fint-feature-toggle-react v1.0.1

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

fint-feature-toggle-react

A component to simplify feature toggling in frontend applications at Vigo/FINTLabs.

Install

yarn add @fintlabs/fint-feature-toggle-react

Usage

Component

<FeatureToggle feature='name of feature'>
    <NewFeature/>
</FeatureToggle>

Hook

const featureEnabled = useFeatureEnabled("name of feature");

if (featureEnabled) {
    // Run new feature
}
else {
    ...
}

Boostraped with Created with https://tsdx.io/

1.0.1

4 years ago

1.0.0

4 years ago