Revize 846f4f3c
Přidáno uživatelem Václav Honzík před více než 2 roky(ů)
frontend/src/index.tsx | ||
---|---|---|
4 | 4 |
import App from './App' |
5 | 5 |
import reportWebVitals from './reportWebVitals' |
6 | 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) |
|
7 | 13 |
|
8 | 14 |
ReactDOM.render( |
9 |
<React.StrictMode> |
|
10 |
<BrowserRouter> |
|
11 |
<App /> |
|
12 |
</BrowserRouter> |
|
13 |
</React.StrictMode>, |
|
15 |
<Provider store={store}> |
|
16 |
<React.StrictMode> |
|
17 |
<BrowserRouter> |
|
18 |
<App /> |
|
19 |
</BrowserRouter> |
|
20 |
</React.StrictMode> |
|
21 |
</Provider>, |
|
14 | 22 |
document.getElementById('root') |
15 | 23 |
) |
16 | 24 |
|
Také k dispozici: Unified diff
re #9130 catalog start