Projekt

Obecné

Profil

Stáhnout (884 Bajtů) 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 846f4f3c Vaclav Honzik
import store from './features/redux/store'
8
import { Provider } from 'react-redux'
9
import { injectStore } from './api/axiosInstance'
10
11
// Injects store to the axios instance in ./api/axiosInstance
12
injectStore(store)
13 ec88f816 Vaclav Honzik
14
ReactDOM.render(
15 846f4f3c Vaclav Honzik
    <Provider store={store}>
16
        <React.StrictMode>
17
            <BrowserRouter>
18
                <App />
19
            </BrowserRouter>
20
        </React.StrictMode>
21
    </Provider>,
22 3b85c076 Vaclav Honzik
    document.getElementById('root')
23
)
24 ec88f816 Vaclav Honzik
25
// If you want to start measuring performance in your app, pass a function
26
// to log results (for example: reportWebVitals(console.log))
27
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
28 3b85c076 Vaclav Honzik
reportWebVitals()