import React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';

import App from './components/app';

import rootReducer from './reducers'

const store = createStore(rootReducer);

render(
	<Provider store={store}>
		<App />
	</Provider>, document.getElementById('app'));

import React from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';

import App from './components/app';

import rootReducer from './reducers'

const createStoreWithMiddleware = applyMiddleware(thunk)(createStore);

render(
	<Provider store={createStoreWithMiddleware(rootReducer)}>
		<App />
	</Provider>, document.getElementById('app'));

Update React app entry point: Add middleware to the project Use redux-thunk lib Applies middleware and use it as store
Update React app entry point:
Add middleware to the project
Use redux-thunk lib
Applies middleware and use it as store
