-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.js
27 lines (26 loc) · 795 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
23
24
25
26
27
import 'polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider as ReduxProvider } from 'react-redux'
import { ToastProvider } from 'react-toast-notifications'
import { Router } from 'react-router-dom'
import { Toast, ToastContainer } from 'views/layout/Toasts'
import ScrollRestoration from 'views/enhancers/ScrollRestoration'
import App from 'views/App'
import history from 'utils/history'
import store from 'store'
import 'styles'
render(
(
<ReduxProvider store={store}>
<ToastProvider components={{ Toast, ToastContainer }}>
<Router history={history}>
<ScrollRestoration>
<App />
</ScrollRestoration>
</Router>
</ToastProvider>
</ReduxProvider>
),
document.querySelector('#mount')
)