AppErrorBoundary
Usage
import { StyledEngineProvider, ThemeProvider } from "@mui/material";
import { AppErrorBoundary, theme } from "@olenbetong/appframe-mui";
import { createRoot } from "react-dom/client";
import App from "./App";
const root = createRoot(document.getElementById("root") as HTMLElement);
root.render(
<StyledEngineProvider>
<ThemeProvider theme={theme}>
<AppErrorBoundary>
<App />
</AppErrorBoundary>
</ThemeProvider>
</StyledEngineProvider>
);Last updated
Was this helpful?