Projekt

Obecné

Profil

Stáhnout (884 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 2a34f0e1 Václav Honzík
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
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
14
ReactDOM.render(
15
    <Provider store={store}>
16
        <React.StrictMode>
17
            <BrowserRouter>
18
                <App />
19
            </BrowserRouter>
20
        </React.StrictMode>
21
    </Provider>,
22
    document.getElementById('root')
23
)
24
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
reportWebVitals()