-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
44 lines (34 loc) · 1.03 KB
/
index.js
File metadata and controls
44 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Main from './Main.jsx';
import NavBar from './Navbar';
import Footer from './Footer.jsx';
import reportWebVitals from './reportWebVitals';
import '@telekom/scale-components/dist/scale-components/scale-components.css';
import {
applyPolyfills,
defineCustomElements,
} from '@telekom/scale-components/loader';
import { BrowserRouter } from 'react-router-dom';
applyPolyfills().then(() => {
defineCustomElements(window);
});
ReactDOM.render(
<BrowserRouter>
<NavBar />
<Main />
</BrowserRouter>,
document.getElementById('root')
)
// ReactDOM.render(
// document.getElementById('root')
// );
ReactDOM.render(
<Footer />,
document.getElementById('footer')
)
// 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();