While mixing React with Vue isn’t always considered best practice, it is entirely possible by bridging to the React
modal via a connector. If you prefer to build your own custom UI, you can also use
@getpara/web-sdk
directly.Prerequisites
To use Para, you need an API key. This key authenticates your requests to Para services and is essential for integration.Don’t have an API key yet? Request access to the Developer Portal to create API keys, manage billing, teams, and more.
Installing Dependencies
First, install the Para React SDK along with React dependencies:Configuring Nuxt (vite plugins & polyfills)
Nuxt 3 uses Vite under the hood, so we can add the React plugin and polyfills innuxt.config.ts
:
nuxt.config.ts
Depending on your app’s architecture, you may or may not disable SSR entirely. The key requirement is ensuring the
React-based modal is client-rendered.
Setting Up the Para SDK
Now that you’ve installed the necessary dependencies, let’s set up the Para SDK in your Vue project. This involves creating a client instance and optionally configuring Next.js to transpile external modules if needed.Creating a Para Client Instance
Just like in React apps, you need a Para client instance. You can keep it in a dedicated file (e.g.,client/para.ts
):
client/para.ts
Para offers two hosted environments:
Environment.BETA
(alias Environment.DEVELOPMENT
) for testing, and
Environment.PROD
(alias Environment.PRODUCTION
) for live use. Select the environment that matches your current
development phase.Building a Connector for the React Modal
Just as with Vue + Vite, we need a connector that mounts the React para modal into a DOM element. For instance:para-modal-connector.tsx
Using the Connector in a Nuxt Component
Nuxt 3 uses a file-based routing system. Let’s assume you have a top-levelapp.vue
or a page component where you want
to show the modal:
app.vue
Beta Testing Credentials In the
BETA
Environment, you can use any email ending in @test.getpara.com
(like
dev@test.getpara.com) or US phone numbers (+1) in the format (area code)-555-xxxx
(like (425)-555-1234). Any OTP
code will work for verification with these test credentials. These credentials are for beta testing only. You can
delete test users anytime in the beta developer console to free up user slots.Customizing the Para Modal
As with any React-based usage, you can pass different props toParaModal
. For example: