Skip to main content
For React-based applications, we recommend using a component-based approach to ensure the widget mounts and unmounts correctly.

Installation Steps

  1. Create a new component called MaedoWidget.tsx (or .jsx).
MaedoWidget.tsx
  1. Import and use this component in your root layout or main application component (e.g., App.tsx or layout.tsx).
layout.tsx

Next.js (App Router)

If you are using the Next.js App Router, ensure the component is a Client Component by adding 'use client'; at the top of the file.