This is my booklist container
import React, {Component} from \'react\';
import { connect } from \'react-redux\';
class BookList extends Component{
renderList
Create a store
and enclose your components within a Provider
like
import {createStore} from 'redux';
import { Provider } from 'react-redux'
import RootReducer form '/path/to/rootreducer';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
import './index.css';
const store = createStore(RootReducer);
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
);