summaryrefslogtreecommitdiff
path: root/frontend/src/index.js
blob: f06bb7b41de381a03b7aeb8471c525137400926b (plain)
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
import 'babel-polyfill'

import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route } from 'react-router'
import { Provider } from 'react-redux'
import configureStore from './store'

const initialState = {}
const { store, history } = configureStore(initialState)

import './global-styles.css'
import HomePage from './containers/home'
import GameBrowser from './containers/app'
import Error404 from './components/errors/Error404'

ReactDOM.render(
  <Provider store={store}>
    <Router history={history}>
      <div className="app">
        <Route path="/" component={HomePage} />
        <Route path="/games" component={GameBrowser} />
        <Route path="*" component={Error404} />
      </div>
    </Router>
  </Provider>,
  document.getElementById('root')
);
bgstack15