-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (30 loc) · 711 Bytes
/
index.js
File metadata and controls
33 lines (30 loc) · 711 Bytes
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
28
29
30
31
32
33
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { injectGlobal } from 'styled-components'
import store from './store'
import Router from './router'
/**
* Globally inject css styles in all the components,
* Must be used only once in the app.
*/
injectGlobal`
body {
font-family: 'Aref Ruqaa', serif;
font-size: 16px;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #f6f9fc;
margin: 0;
}
* {
box-sizing: border-box;
}
`
ReactDOM.render(
<Provider store={store} >
<Router />
</Provider>,
document.getElementById('root')
)