import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'

import Root from './containers/Root'
import configureStore from './store/configureStore'
import statesList from '../data/statesList'

const initialState = {
  regionData: [],
  emptyData: statesList,

}

const store = configureStore(initialState)
const history = syncHistoryWithStore(browserHistory, store)

render(
  <Root store={store} history={history} />,
  document.getElementById('editor-container')
)

import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'

import Root from './containers/Root'
import configureStore from './store/configureStore'
import statesList from './data/statesList'

const initialState = {
  regionData: [],
  emptyData: statesList,

}

const store = configureStore(initialState)
const history = syncHistoryWithStore(browserHistory, store)

render(
  <Root store={store} history={history} />,
  document.getElementById('editor-container')
)

fix react/index.js