-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
executable file
·52 lines (52 loc) · 1.28 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
import React from 'react'
import ReactDOM from 'react-dom'
import { Nav, Navbar, Col } from 'react-bootstrap'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import logger from 'redux-logger'
import { Modal, Slides, Worlds, MapEditor, SlideSidebar } from './components'
import reducer from './reducers'
import './style.css'
const store = createStore(
reducer,
{
worlds: {
array: []
},
slides: {
array: []
}
},
applyMiddleware(logger)
)
const App = () => {
return (
<Provider store={store}>
<div>
<link
href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'
rel='stylesheet'
integrity='sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u'
crossOrigin='anonymous'
/>
<Navbar>
<Navbar.Header>
<Navbar.Brand><a>Hoc462</a></Navbar.Brand>
</Navbar.Header>
<Nav>
<Slides />
<Worlds />
</Nav>
</Navbar>
<Modal />
<Col xs={4}>
<SlideSidebar />
</Col>
<Col xs={8}>
<MapEditor />
</Col>
</div>
</Provider>
)
}
ReactDOM.render(<App />, document.getElementById('root'))