Created
November 4, 2017 13:12
-
-
Save muneneevans/0bca54dfcfa21c9a7e80e256c94c9ad2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { render } from "react-dom" | |
import React from "react" | |
import { Provider } from "react-redux" | |
import { combineReducers, createStore, applyMiddleware } from "redux" | |
import thunk from 'redux-thunk' | |
//import the post screen | |
import PostScreen from "Containers/PostScreen" | |
//import all your reducers from the store | |
import postsReducer from "./Store/Posts/reducers" | |
// | |
const rootReducer = combineReducers({ | |
postsReducer | |
}) | |
const store = createStore(rootReducer, applyMiddleware(thunk)) | |
render( | |
<Provider store={store}> | |
<PostScreen/> | |
</Provider>, | |
document.getElementById('app') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment