-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
37 lines (29 loc) · 899 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
28
29
30
31
32
33
34
35
36
37
// Libraries
import React from 'react'
import { render } from 'react-dom'
import Amplify from 'aws-amplify'
import awsExports from './aws-exports'
import { ThemeProvider } from 'styled-components'
import theme from './utils/theme'
import GlobalStyles from './utils/global'
import * as serviceWorker from './serviceWorker'
// Styles
import './index.css'
// Component Imports
import App from './App'
Amplify.configure(awsExports)
render(
<React.StrictMode>
<ThemeProvider theme={theme}>
<React.Fragment>
<App />
<GlobalStyles />
</React.Fragment>
</ThemeProvider>
</React.StrictMode>,
document.getElementById('root')
)
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister()