Files
SatsFaucet/frontend/src/main.tsx
Michaël 3734365463 first commit
Made-with: Cursor
2026-02-26 18:33:00 -03:00

22 lines
574 B
TypeScript

import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import { ErrorBoundary } from "./ErrorBoundary";
import { ToastProvider } from "./contexts/ToastContext";
import "./styles/global.css";
const rootEl = document.getElementById("root");
if (!rootEl) {
document.body.innerHTML = "<p>Root element #root not found.</p>";
} else {
ReactDOM.createRoot(rootEl).render(
<React.StrictMode>
<ErrorBoundary>
<ToastProvider>
<App />
</ToastProvider>
</ErrorBoundary>
</React.StrictMode>
);
}