text: export default (state = [], action) => {
    switch(action.type){
      case 'GET_BOOKS_SUCCESS':
        return action.books;
  
        case 'CREATE_BOOK_SUCCESS':
          return state.concat(action.book);
  
        default:
          return state;
    }
  }
  