Installation
Add the Vizco React SDK to your project with npm.
The Vizco React SDK provides React components that render published widgets in any React application (Next.js, Vite, CRA, etc.).
Requirements
| Requirement | Minimum | |---|---| | React | 18.0+ | | React DOM | 18.0+ |
Install
npm install @vizco/reactImport the SDK styles in your app's entry point:
App.tsx
import "@vizco/react/styles.css";What's included
The SDK exports:
| Export | Description |
|---|---|
| VizcoProvider | Context provider — wraps your app with API key and analytics |
| VizcoWidget | Component — renders a widget by slug |
| useVizco | Hook — access the Vizco context (API key, base URL, analytics) |
Next steps
- Initialization — Set up the provider with your API key.
- Displaying Widgets — Render widgets in your components.