-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
53 lines (45 loc) · 1.07 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* Blocktron Explorer
* The web-ui for exploring Blocktron blockchain. Seamlessly interact with your
* Blocktron-node instance using blocktron-explorer.
* Written by: Sandeep Vattapparambil
* Email: [email protected]
* Website: www.sandeepv.in
*/
/**
* Import React libraries
*/
import React from 'react';
import ReactDOM from 'react-dom';
/**
* Import main css
*/
import './index.css';
/**
* Import top level components
*/
import Header from './components/app-header/header';
import Body from './components/app-body/body';
/**
* Import custom libraries
*/
import lib from './lib/index';
import btProgress from './lib/btProgress';
/**
* Import Service Worker
*/
import registerServiceWorker from './registerServiceWorker';
/**
* Initialize btProgress loader
*/
btProgress.init();
btProgress.start();
/**
* Render the top level components on to the Shadow DOM
*/
ReactDOM.render(< Header />, document.getElementById('header'));
ReactDOM.render(< Body />, document.getElementById('body'));
/**
* Register the service worker
*/
registerServiceWorker();