Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
INCREMENT_SYNC_BUTTON,
} from './flags';
const UntoggledFeature = () => <h6>Disabled Feature</h6>;
const IncrementAsyncButton = props => (
<button disabled="{props.isIncrementing}" type="button">
Increment Async
</button>
);
const FeatureToggledIncrementAsyncButton = flowRight(
branchOnFeatureToggle({ flag: INCREMENT_ASYNC_BUTTON }, UntoggledFeature)
)(IncrementAsyncButton);
const IncrementSyncButton = props => (
<button disabled="{props.isIncrementing}" type="button">
Increment
</button>