@threecoder/react
v1.0.2
Published
Drop-in React SPA integration for SEO Autopilot. Wrap your app once with <SeoAutopilotProvider> to automatically register, track every pageview/route change, and apply portal-approved SEO fixes to the DOM. Works with Vite, Create React App, or any React S
Readme
@threecoder/react
Drop-in React SPA integration for SEO Autopilot. Wrap your app once and it automatically registers your site, tracks every pageview/route change, and applies portal-approved SEO fixes to the DOM.
Works with Vite, Create React App, or any React SPA build output deployed to any CDN or server.
Install
npm install @threecoder/reactUsage
Wrap your app root once (App.tsx / main.tsx):
import { SeoAutopilotProvider } from "@threecoder/react";
export default function App() {
return (
<SeoAutopilotProvider projectId="YOUR_PROJECT_ID" apiKey="YOUR_API_KEY">
<YourRouter />
</SeoAutopilotProvider>
);
}Get projectId and apiKey from the Connectors page in your SEO Autopilot dashboard.
Props
| Prop | Required | Default |
| ----------- | -------- | --------------------------------- |
| projectId | Yes | — |
| apiKey | Yes | — |
| endpoint | No | https://app.seoautopilot.app |
License
MIT
