import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' import { createStore } from 'redux' import { Provider } from 'redux-vanilla' const initialState = { upVote: 0, downVote: 0 } const reducer = (state, action) => { switch (action.type) { case 'UP_VOTE': state.upVote++ return { ...state } case 'DOWN_VOTE': state.downVote++ return { ...state } defau