Projekt

Obecné

Profil

Stáhnout (1.04 KB) Statistiky
| Větev: | Tag: | Revize:
1 3b85c076 Vaclav Honzik
import React from 'react'
2
import ReactDOM from 'react-dom'
3
import './index.css'
4
import App from './App'
5
import reportWebVitals from './reportWebVitals'
6
import { BrowserRouter } from 'react-router-dom'
7 a69da1e3 Vaclav Honzik
import store, { persistor } from './features/redux/store'
8 846f4f3c Vaclav Honzik
import { Provider } from 'react-redux'
9 37f6ff02 Vaclav Honzik
import { injectStore } from './api/api'
10 a69da1e3 Vaclav Honzik
import { PersistGate } from 'redux-persist/integration/react'
11 846f4f3c Vaclav Honzik
12
// Injects store to the axios instance in ./api/axiosInstance
13
injectStore(store)
14 ec88f816 Vaclav Honzik
15
ReactDOM.render(
16 846f4f3c Vaclav Honzik
    <Provider store={store}>
17 a69da1e3 Vaclav Honzik
        <PersistGate loading={null} persistor={persistor}>
18 1c710f4f Vaclav Honzik
            {/* <React.StrictMode> */}
19 a69da1e3 Vaclav Honzik
                <BrowserRouter>
20
                    <App />
21
                </BrowserRouter>
22 1c710f4f Vaclav Honzik
            {/* </React.StrictMode> */}
23 a69da1e3 Vaclav Honzik
        </PersistGate>
24 846f4f3c Vaclav Honzik
    </Provider>,
25 3b85c076 Vaclav Honzik
    document.getElementById('root')
26
)
27 ec88f816 Vaclav Honzik
28
// If you want to start measuring performance in your app, pass a function
29
// to log results (for example: reportWebVitals(console.log))
30
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
31 3b85c076 Vaclav Honzik
reportWebVitals()