Skip to content

Instantly share code, notes, and snippets.

@isquick82
Created November 18, 2019 22:05
Show Gist options
  • Save isquick82/f669c2699fb8bc6d9e362cc887b53bb6 to your computer and use it in GitHub Desktop.
Save isquick82/f669c2699fb8bc6d9e362cc887b53bb6 to your computer and use it in GitHub Desktop.
import optimizelyClientInstance from './optimizely'
const enabled = optimizelyClientInstance.isFeatureEnabled('new_feature', 'user123');
if (enabled) {
// Show your feature
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment