Skip to content

Instantly share code, notes, and snippets.

@kianaditya
Last active October 30, 2019 15:44
Show Gist options
  • Save kianaditya/f029545aeb931beb3d5a0e3be377263c to your computer and use it in GitHub Desktop.
Save kianaditya/f029545aeb931beb3d5a0e3be377263c to your computer and use it in GitHub Desktop.
index for stripe elements implementation
// index.js
import React from "react";
import { render } from "react-dom";
import {Elements, StripeProvider } from "react-stripe-elements";
import App from "./App.js";
render(
<StripeProvider apiKey="pk_test_12345">
<Elements>
<App />
</Elements>
</StripeProvider>,
document.getElementById("root")
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment