src/actions/index.js
// selectBook is an ActionCreator, returns an action (an object with a type property)
selectBook is an ActionCreator, returns an action (an object with a type property)
selectBook is an ActionCreator returns an action ( an object with a type property )
function selectBook(book) {
	return ({
		type: 'BOOK_SELECTED',
		payload: book
	});
}
function selectBook ( book ) { return ( { type : 'BOOK_SELECTED' , payload : book } ) ; }
selectBook is an ActionCreator, returns an action (an object with a type property)
selectBook is an ActionCreator returns an action ( an object with a type property )
// console.log('A book has been selected: ', book.title);