client/src/components/SavedBookCard/index.js
// Deletes a book from the database with a given id, then reloads books from the db
Deletes a book from the database with a given id, then reloads books from the db
Deletes a book from the database with a given id then reloads books from the db
function deleteBook() {
    API.deleteBook(props.id)
      .then(res => props.afterDelete())
      .catch(err => console.log(err));
  }
function deleteBook ( ) { API . deleteBook ( props . id ) . then ( res => props . afterDelete ( ) ) . catch ( err => console . log ( err ) ) ; }
Deletes a book from the database with a given id, then reloads books from the db
Deletes a book from the database with a given id then reloads books from the db