Getting Started

Get up and running with m0rphic in your React application.

1. Install the SDK

Install the m0rphic React SDK using your preferred package manager:

bash

2. Add the Provider

Wrap your application with the M0rphicProvider:

app.tsx

Get your App ID

Create a project in the m0rphic dashboard to get your App ID. Each environment (development, staging, production) should have its own App ID.

3. Create Your First Zone

Zones are the areas of your UI that m0rphic manages. Use the M0rphicZone component:

main-content.tsx

4. Track Custom Events

While m0rphic automatically tracks basic events, you can also track custom events:

pricing-card.tsx

What's Next?