Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat (Hooks): Add useExperiment hook and refactor <OptimizelyExperiment> to use it #36

Merged
merged 3 commits into from
Mar 18, 2020

Conversation

jamesopti
Copy link
Contributor

@jamesopti jamesopti commented Mar 17, 2020

Summary

Adds a useExperiment hook and updates <OptimizelyExperiment> to use it.

Test Plan

Unit tests added for the new hook, refactored for the <OptimizelyExperiment> usage, and new tests added for the passing of overrides.

Addresses #30

});
});
}
let match: React.ReactElement<VariationProps> | null = null;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github is being dramatic here. None of this was changed from the render method of the class component.

Copy link
Contributor

@mjc1283 mjc1283 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the README code examples 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants