Skip to content

Instantly share code, notes, and snippets.

@brookslyrette
Created October 9, 2016 15:35
Show Gist options
  • Select an option

  • Save brookslyrette/8b5beb4a26bb0974d088a91fb7b0bd4c to your computer and use it in GitHub Desktop.

Select an option

Save brookslyrette/8b5beb4a26bb0974d088a91fb7b0bd4c to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './App';
import './index.css';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { subreddit } from './reducers/redditReducer.js';
const store = createStore(subreddit, applyMiddleware(thunk));
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