source: sources/client/src/index.js@ e8b1076

Last change on this file since e8b1076 was 3a58bd6, checked in by Viktor <39170279+Tasevski2@…>, 3 years ago

Added Frontend

  • Property mode set to 100644
File size: 885 bytes
Line 
1import React from 'react';
2import ReactDOM from 'react-dom';
3import './index.css';
4import App from './App';
5import reportWebVitals from './reportWebVitals';
6
7import { BrowserRouter } from 'react-router-dom';
8import { ThemeProvider } from 'styled-components';
9
10import { StyledEngineProvider } from '@mui/material/styles';
11
12import theme from './theme/index';
13
14ReactDOM.render(
15 <React.StrictMode>
16 <BrowserRouter>
17 <StyledEngineProvider injectFirst>
18
19 <ThemeProvider theme={theme}>
20
21 <App />
22
23 </ThemeProvider>
24
25 </StyledEngineProvider>
26 </BrowserRouter>
27 </React.StrictMode>,
28 document.getElementById('root')
29);
30
31// If you want to start measuring performance in your app, pass a function
32// to log results (for example: reportWebVitals(console.log))
33// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
34reportWebVitals();
Note: See TracBrowser for help on using the repository browser.