Skip to content

Instantly share code, notes, and snippets.

@pratik-chakravorty
Last active March 29, 2018 03:36
Show Gist options
  • Save pratik-chakravorty/cce474de026746d8c3558e653f3cc39b to your computer and use it in GitHub Desktop.
Save pratik-chakravorty/cce474de026746d8c3558e653f3cc39b to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import postReducer from './reducers/postReducer';
const store = createStore(postReducer);
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