Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 580 Bytes

File metadata and controls

32 lines (25 loc) · 580 Bytes

fint-feature-toggle-react

CI

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 {
    ...
}

Created with https://tsdx.io/