diff --git a/index.tsx b/index.tsx index ee12441..c30d566 100644 --- a/index.tsx +++ b/index.tsx @@ -1,8 +1,11 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; -import { Analytics } from '@vercel/analytics/react'; +import { inject } from '@vercel/analytics'; import App from './App'; +// Initialize Vercel Web Analytics +inject(); + const rootElement = document.getElementById('root'); if (!rootElement) { throw new Error("Could not find root element to mount to"); @@ -12,6 +15,5 @@ const root = ReactDOM.createRoot(rootElement); root.render( - );