Created
May 26, 2021 23:24
-
-
Save njbmartin/826b25a085a923b87b25bd90e6f464a3 to your computer and use it in GitHub Desktop.
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 from 'react' | |
import { useGoogleOptimize } from '@heights/react-use-google-optimize' | |
const App = () => { | |
const [isVariation] = useGoogleOptimize("OPTIMIZE_EXPERIMENT_ID") | |
return ( | |
<> | |
<h1>{ isVariation ? "This is a variant" : "This is control" }</h1> | |
</> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment