-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
60 lines (53 loc) · 1.35 KB
/
index.tsx
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
54
55
56
57
58
59
60
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import * as Immutable from 'immutable';
import { Provider } from 'react-redux';
import {configureStore} from './store/configureStore';
import {App} from './app';
import * as ItemActions from '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(initialStore);
const addItemsActions = ItemActions.addComponentaItem();
for (var j = 0; j < 10; j++) {
store.dispatch(addItemsActions)
}
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>
, rootElement
)