function mapStateToProps(state){
    //Returns object to be used by our BookList component - Takes the book list from our Application state and stores it as an object (this.props.books), Object = Key (books)/Value (state.books), this object will be reassigned to the component (as this.props.books) whenever the container is rerendered
    return{
        books: state.books
    };
}
//Maps state to Container - Takes a specific part of the Apps state and passes it to  the component (BooksList) - Takes application state (array of books + selected book etc.) and returns an object (books) that will be available to our BookList component (as this.props.books)
Maps state to Container - Takes a specific part of the Apps state and passes it to  the component (BooksList) - Takes application state (array of books + selected book etc.) and returns an object (books) that will be available to our BookList component (as this.props.books)
Maps state to Container - Takes a specific part of the Apps state and passes it to the component ( BooksList ) - Takes application state ( array of books + selected book etc . ) and returns an object ( books ) that will be available to our BookList component ( as this . props . books )
function mapStateToProps(state){
    return{
        books: state.books
    };
}
function mapStateToProps ( state ) { return { books : state . books } ; }
Maps state to Container - Takes a specific part of the Apps state and passes it to  the component (BooksList) - Takes application state (array of books + selected book etc.)
Maps state to Container - Takes a specific part of the Apps state and passes it to the component ( BooksList ) - Takes application state ( array of books + selected book etc . )
//Returns object to be used by our BookList component - Takes the book list from our Application state and stores it as an object (this.props.books), Object = Key (books)/Value (state.books), this object will be reassigned to the component (as this.props.books) whenever the container is rerendered