UNPKG

nodemda-js-react-mantine

Version:

NodeMDA plugin to React frontend using Mantine UI components

27 lines (23 loc) 847 B
import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; import { MantineProvider } from '@mantine/core'; import '@mantine/core/styles.css'; import 'mantine-datatable/styles.css'; import { AuthProvider } from './auth/UserContext'; const root = ReactDOM.createRoot(document.getElementById('root')); root.render( <React.StrictMode> <MantineProvider withGlobalStyles withNormalizeCSS> <AuthProvider> <App /> </AuthProvider> </MantineProvider> </React.StrictMode> ); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals reportWebVitals();