-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
50 lines (50 loc) · 1.43 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
"use strict";
const React = require('react');
const ReactDOM = require('react-dom');
const Immutable = require('immutable');
const react_redux_1 = require('react-redux');
const configureStore_1 = require('./store/configureStore');
const app_1 = require('./app');
const ItemActions = require('actions/actions');
var rootElement = document.createElement("div");
document.body.appendChild(rootElement);
const initialStore = {
channel: Immutable.fromJS({
placedItems: {
"00": {
title: "a",
},
"01": {
title: "b",
},
"02": {
title: "c",
},
"03": {
title: "d",
},
"04": {
title: "e",
},
"05": {
title: "f",
},
"06": {
title: "g",
},
"07": {
title: "h",
},
"08": {
title: "i",
}
}
})
};
const store = configureStore_1.configureStore(initialStore);
const addItemsActions = ItemActions.addComponentaItem();
for (var j = 0; j < 10; j++) {
store.dispatch(addItemsActions);
}
ReactDOM.render(React.createElement(react_redux_1.Provider, {store: store}, React.createElement(app_1.App, null)), rootElement);
//# sourceMappingURL=index.js.map