Skip to content

Instantly share code, notes, and snippets.

@tannerlinsley
Created October 23, 2016 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tannerlinsley/dd0772f9160d2fbda91b35da6b690243 to your computer and use it in GitHub Desktop.
Save tannerlinsley/dd0772f9160d2fbda91b35da6b690243 to your computer and use it in GitHub Desktop.
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, combineReducers } from 'redux'
import { attachDispatcher } from 'jumpstate'
//
import App from './App'
import CounterState from './state/counter'
import './index.css'
const states = {
counter: CounterState
}
const rootReducer = combineReducers(states)
const store = createStore(rootReducer)
attachDispatcher(store, states)
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment