From de105712deaf551d80b509bbde67e3da28177a59 Mon Sep 17 00:00:00 2001 From: Matt Carroll Date: Wed, 20 May 2020 14:55:39 -0700 Subject: [PATCH] fix: Export useExperiment hook from index (#50) Make useExperiment hook available as an export from the top level package module. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4a76d3f6..0034e3a5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,7 +16,7 @@ export { OptimizelyContext, OptimizelyContextConsumer, OptimizelyContextProvider } from './Context'; export { OptimizelyProvider } from './Provider'; export { OptimizelyFeature } from './Feature'; -export { useFeature } from './hooks'; +export { useFeature, useExperiment } from './hooks'; export { withOptimizely, WithOptimizelyProps, WithoutOptimizelyProps } from './withOptimizely'; export { OptimizelyExperiment } from './Experiment'; export { OptimizelyVariation } from './Variation';