This project provides an overview of the multiple ways to integrate the Outseta embeds with React. It's designed as a reference implementation showing various Outseta embed implementations and integration patterns.
A "kitchen sink" provides comprehensive examples of how to use a technology. It's not intended to be a starting point for new projects.
If you're looking for a starting point for a new project, check out the Outseta React Starter.
- Clone the repository
git clone https://github.com/outseta/outseta-react-kitchen-sink.git
cd outseta-react-kitchen-sink- Install dependencies
npm install- Configure environment variables
Create a
.envfile in the root directory with the following variables:
VITE_OUTSETA_DOMAIN=your-domain.outseta.com
VITE_OUTSETA_ADD_ON_UIDS=uid1,uid2
VITE_OUTSETA_LEAD_CAPTURE_UID=uid1,uid2
VITE_OUTSETA_EMAIL_LIST_UIDS=uid1,uid2VITE_OUTSETA_DOMAIN: Your Outseta domainVITE_OUTSETA_ADD_ON_UIDS: Comma-separated UIDs for add-on productsVITE_OUTSETA_LEAD_CAPTURE_UID: Comma-separated UIDs for lead capture formsVITE_OUTSETA_EMAIL_LIST_UIDS: Comma-separated UIDs for email lists
- Start the development server
npm run devThe project includes examples for:
- Auth Embed (Signup, Login, Combined Signup/Login)
- Profile Embed (Billing, Profile, Account)
- Profile Embed (Buy Add On)
- Lead Capture Embed
- Email List Embed
- Protected Content
- Logout Functionality
- React
- Vite
- React Router
- Outseta Embed API