blowfish/src/renderer/index.js

22 lines
593 B
JavaScript
Raw Normal View History

2019-05-05 13:34:21 +02:00
import React from 'react'
import { render } from 'react-dom'
2019-05-13 22:54:40 +02:00
import AppProvider from './store/AppProvider'
2019-05-05 13:34:21 +02:00
import App from './App'
2019-09-07 16:00:58 +02:00
import pkg from '../../package.json'
2019-09-08 21:47:57 +02:00
import './index.css'
2019-05-05 13:34:21 +02:00
document.body.style.backgroundColor = '#141414'
// Since we are using HtmlWebpackPlugin WITHOUT a template, we should create our own root node in the body element before rendering into it
let root = document.createElement('div')
root.id = 'root'
document.body.appendChild(root)
2019-09-07 16:00:58 +02:00
document.title = pkg.productName
2019-05-05 13:34:21 +02:00
2019-05-13 22:54:40 +02:00
render(
<AppProvider>
<App />
2019-05-13 22:54:40 +02:00
</AppProvider>,
document.getElementById('root')
)