A user-friendly guide to quickly integrate the Para Modal into a Create React App (CRA) setup using CRACO.
crypto
, buffer
,
stream
). You’ll need to configure polyfills via CRACO’s config to ensure those modules work properly.
Install the necessary polyfill packages before updating your configuration:
craco.config.js
:
Create a Providers Component
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.Wrap Your App with Providers
index.js
or App.js
:Add the Para Modal
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.ParaModalProps
, refer to the customization guide:
Standalone Para Modal Setup
ParaModal Not Rendering or Not Visible
isOpen
state is correctly toggled.ParaModal
component is imported from @getpara/react-sdk
.craco.config.js
.Modal Appears but Styles Are Missing or Incorrect
import "@getpara/react-sdk/styles.css"
.Authentication Fails or API Requests Are Rejected
REACT_APP_PARA_API_KEY
).BETA
or PRODUCTION
) that matches your API key.Polyfill-Related Errors or Undefined Functions
A detailed description of the problem you’re encountering.
Any relevant error messages or logs.
Steps to reproduce the issue.
Details about your system or environment (e.g., device, operating system, software version).