Created
November 8, 2019 10:01
-
-
Save raae/6998e692ee16265a2dfa45a350b7cb82 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
// Replace const stripe .... with the snippet below. | |
const [stripe, setStripe] = useState() | |
useEffect(() => { | |
setStripe(window.Stripe(STRIPE_KEY)) | |
}, []) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment