Created
August 9, 2023 20:18
-
-
Save juliandavidmr/233b6941ad03b5e094706e79d354c4f1 to your computer and use it in GitHub Desktop.
2022 ExperimentLayout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { FC } from 'react'; | |
import { AmplitudeExperimentProvider } from './ExperimentProvider'; | |
const ExperimentLayout: FC = ({ children }) => { | |
const debug = true; // todo: Set this const dependending your environment. | |
return ( | |
<AmplitudeExperimentProvider | |
envExperimentKey="EXPERIMENT-ENVIRONMENT-KEY" | |
amplitudeApiKey="AMPLITUDE-API-KEY" | |
user={{ | |
originalId: 'THE-USER-ID', | |
}} | |
debugMode={debug} | |
> | |
{children} | |
</AmplitudeExperimentProvider> | |
); | |
}; | |
export default ExperimentLayout; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment