generated from goitacademy/react-homework-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
22 lines (21 loc) · 745 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react';
import ReactDOM from 'react-dom/client';
import { App } from 'components/App';
import { BrowserRouter } from 'react-router-dom';
import { ThemeProvider } from 'styled-components';
import { theme } from './theme';
import './index.css';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { persistor, store } from 'redux/store';
ReactDOM.createRoot(document.getElementById('root')).render(
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<BrowserRouter basename="/Pets-frontend">
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>
</BrowserRouter>
</PersistGate>
</Provider>
);