@fintlabs/fint-feature-toggle-react
v1.0.1
Published
A component to simplify feature toggling in frontend applications at Vigo/FINTLabs.
Downloads
10
Readme
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/