Files
CrazeAnalytix/index.tsx
T

16 lines
399 B
TypeScript
Raw Normal View History

import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import ErrorBoundary from './components/ErrorBoundary';
const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error("Could not find root element to mount to");
}
const root = ReactDOM.createRoot(rootElement);
root.render(
<ErrorBoundary>
<App />
</ErrorBoundary>
);