-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
42 lines (32 loc) · 923 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
38
39
40
41
42
// import React from 'react';
// import ReactDOM from 'react-dom';
// import createReactClass from 'create-react-class';
// React.createClass = createReactClass;
// var App = require('./output/Todo.App');
// function main() {
// const myComponent = (
// <App.app/>
// );
// ReactDOM.render(myComponent, document.getElementById('app'));
// }
// // HMR stuff
// // For more info see: https://parceljs.org/hmr.html
// if (module.hot) {
// module.hot.accept(function () {
// console.log('Reloaded, running main again');
// main();
// });
// }
// console.log('Starting app');
// main();
var Main = require('./output/Main');
// HMR stuff
// For more info see: https://parceljs.org/hmr.html
if (module.hot) {
module.hot.accept(function () {
console.log('index.js, reloaded and running Main.main() again');
Main.main();
});
}
console.log('index.js, running Main.main()');
Main.main();