An example implementation of Shippo's Shipping Elements in React using Create React App.
For more information on Shippo's Shipping Elements, see the Shipping Elements documentation.
The Shipping Elements SDK is installed at public/index.html and with the bulk of the implementation in src/App.js. When running the application you will be prompted to enter an authentication token. You can use a session token from our authz endpoint or an API token. If you do not have a Shippo account, you can sign up for one here.
View the live demo of this repository at https://goshippo.github.io/shipping-elements-react-demo/
This project requires Node.
To run this project in your local system follow these steps.
- Clone or download this repository
- In the project directory run the following command to download the project dependencies
npm install
- Run the following command to run the application in development mode
npm start
- Open http://localhost:3000 to view it in your browser
The page will reload if you make edits. You will also see any lint errors in the console.