import React from 'react'
import ReactDOM from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'

import { MainReducer } from './actions/reducers'
import MainApp from './uiComponents/mainApp'

let store = createStore(MainReducer, {messages: [
  {id: 0, message: "yo", author: "me"}
]});

ReactDOM.render(
  <Provider store={store}>
    <MainApp />
  </Provider>,
  document.getElementById('wrapper')
);

import React from 'react'
import ReactDOM from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'

import { MainReducer } from './actions/reducers'
import MainApp from './uiComponents/mainApp'

let store = createStore(MainReducer);

ReactDOM.render(
  <Provider store={store}>
    <MainApp />
  </Provider>,
  document.getElementById('wrapper')
);

Delete initial state that was just for development purposes
Delete initial state that was just for development purposes
