1
|
import React from 'react';
|
2
|
import ReactDOM from 'react-dom';
|
3
|
import './index.css';
|
4
|
import App from './App';
|
5
|
import * as serviceWorker from './serviceWorker';
|
6
|
import { render } from '@testing-library/react';
|
7
|
|
8
|
fetch(
|
9
|
"config.json").then((response) => response.json()).then(config => {
|
10
|
window.config = config;
|
11
|
ReactDOM.render(
|
12
|
<React.StrictMode>
|
13
|
<App />
|
14
|
</React.StrictMode>,
|
15
|
document.getElementById('root')
|
16
|
);
|
17
|
|
18
|
});
|
19
|
|
20
|
|
21
|
|
22
|
|
23
|
// If you want your app to work offline and load faster, you can change
|
24
|
// unregister() to register() below. Note this comes with some pitfalls.
|
25
|
// Learn more about service workers: https://bit.ly/CRA-PWA
|
26
|
serviceWorker.unregister();
|