Newer
Older
import React from "react";
import { createRoot } from "react-dom/client";
let ErrorBoundary = ({ children }: React.PropsWithChildren) => <>{children}</>;
if (__SENTRY_DSN__) {
ErrorBoundary = ({ children }) => {
return <Sentry.ErrorBoundary showDialog>{children}</Sentry.ErrorBoundary>;
};
const root = createRoot(document.getElementById("root")!);
<ThemeProvider attribute="class" defaultTheme="system">
<div className="w-screen h-screen bg-[#ddd] dark:bg-[#060606]">
<App />
</div>
</ThemeProvider>