Installation
Install the package using npm, yarn, or pnpm:
npm install @mvtlab/nextjs-orchestrator
# or
yarn add @mvtlab/nextjs-orchestrator
# or
pnpm add @mvtlab/nextjs-orchestrator
Requirements
- Next.js >= 13.0.0 (App Router or Pages Router)
- React >= 18.0.0
- React DOM >= 18.0.0
Important: Client Component
MVTOrchestrator is a client component and must be used in a file marked with 'use client';.
Why client-only?
The orchestrator injects<script>and<style>tags, accesseswindowanddocument, and defineswindow.rmfk. These operations only exist in the browser and are not allowed in Next.js server components, so the component must run on the client.