Custom components for your website
npm install @chron/react
CHRON_API_KEY=YOUR_CHRON_API_KEY
import React from 'react' import ReactDOM from 'react-dom/client' import App from './App.tsx' import './index.css' import { ChronProvider } from '@chron/react' // Import your publishable key const CHRON_API_KEY = import.meta.env.CHRON_API_KEY if (!CHRON_API_KEY) { throw new Error("Missing Publishable Key") } ReactDOM.createRoot(document.getElementById('root')!).render( <React.StrictMode> <ChronProvider publishableKey={CHRON_API_KEY}> <App /> </ChronProvider> </React.StrictMode>, )