gonito-frontend/src/index.js

20 lines
500 B
JavaScript
Raw Normal View History

2022-07-01 14:29:38 +02:00
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import './normalize.css';
2022-07-01 14:29:38 +02:00
import App from './App';
2022-09-23 14:46:21 +02:00
import KeyCloakService from './services/KeyCloakService';
import HttpService from './services/HttpService';
2022-07-01 14:29:38 +02:00
const root = ReactDOM.createRoot(document.getElementById('root'));
2022-08-29 15:16:18 +02:00
const renderApp = () => root.render(
<React.StrictMode>
<App/>
</React.StrictMode>
2022-07-01 14:29:38 +02:00
);
2022-08-29 15:16:18 +02:00
2022-09-23 14:46:21 +02:00
KeyCloakService.initKeycloak(renderApp);
HttpService.configure();
2022-09-22 13:35:09 +02:00
renderApp();